mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Fix typo mentioning threads instead of tasks (#123203)
This commit is contained in:
parent
126910edba
commit
58fdb169c8
1 changed files with 3 additions and 3 deletions
|
|
@ -341,9 +341,9 @@ class Condition(_ContextManagerMixin, mixins._LoopBoundMixin):
|
||||||
fut.set_result(False)
|
fut.set_result(False)
|
||||||
|
|
||||||
def notify_all(self):
|
def notify_all(self):
|
||||||
"""Wake up all threads waiting on this condition. This method acts
|
"""Wake up all tasks waiting on this condition. This method acts
|
||||||
like notify(), but wakes up all waiting threads instead of one. If the
|
like notify(), but wakes up all waiting tasks instead of one. If the
|
||||||
calling thread has not acquired the lock when this method is called,
|
calling task has not acquired the lock when this method is called,
|
||||||
a RuntimeError is raised.
|
a RuntimeError is raised.
|
||||||
"""
|
"""
|
||||||
self.notify(len(self._waiters))
|
self.notify(len(self._waiters))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue