There was an error while loading. Please reload this page.
2 parents 8cd2b6e + 143f815 commit 05740cbCopy full SHA for 05740cb
1 file changed
async/pool.py
@@ -508,4 +508,7 @@ class ThreadPool(Pool):
508
"""A pool using threads as worker"""
509
WorkerCls = WorkerThread
510
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)
514
TaskQueueCls = AsyncQueue
0 commit comments