We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b78174c commit 41eb85bCopy full SHA for 41eb85b
Lib/multiprocessing/managers.py
@@ -957,8 +957,9 @@ def close(self, *args):
957
958
class AcquirerProxy(BaseProxy):
959
_exposed_ = ('acquire', 'release')
960
- def acquire(self, blocking=True):
961
- return self._callmethod('acquire', (blocking,))
+ def acquire(self, blocking=True, timeout=None):
+ args = (blocking,) if timeout is None else (blocking, timeout)
962
+ return self._callmethod('acquire', args)
963
def release(self):
964
return self._callmethod('release')
965
def __enter__(self):
0 commit comments