mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-29293: multiprocessing.Condition.notify() lacks parameter n (#2480)
* bpo-29293: multiprocessing.Condition.notify() lacks parameter `n` * Add NEWS blurb
This commit is contained in:
parent
d3ed2877a7
commit
48350412b7
4 changed files with 71 additions and 28 deletions
|
|
@ -999,8 +999,8 @@ class ConditionProxy(AcquirerProxy):
|
|||
_exposed_ = ('acquire', 'release', 'wait', 'notify', 'notify_all')
|
||||
def wait(self, timeout=None):
|
||||
return self._callmethod('wait', (timeout,))
|
||||
def notify(self):
|
||||
return self._callmethod('notify')
|
||||
def notify(self, n=1):
|
||||
return self._callmethod('notify', (n,))
|
||||
def notify_all(self):
|
||||
return self._callmethod('notify_all')
|
||||
def wait_for(self, predicate, timeout=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue