Skip to content
This repository was archived by the owner on Apr 14, 2024. It is now read-only.

Commit 05740cb

Browse files
committed
Merge branch 'fix_issue_1'
Conflicts: async/pool.py
2 parents 8cd2b6e + 143f815 commit 05740cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

async/pool.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,4 +508,7 @@ class ThreadPool(Pool):
508508
"""A pool using threads as worker"""
509509
WorkerCls = WorkerThread
510510
LockCls = Lock
511+
# NOTE: Since threading.Lock is a method not a class, we need to prevent
512+
# conversion to an unbound method.
513+
LockCls = staticmethod(Lock)
511514
TaskQueueCls = AsyncQueue

0 commit comments

Comments
 (0)