Skip to content

Commit 58fdb16

Browse files
Fix typo mentioning threads instead of tasks (#123203)
1 parent 126910e commit 58fdb16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/asyncio/locks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,9 @@ def _notify(self, n):
341341
fut.set_result(False)
342342

343343
def notify_all(self):
344-
"""Wake up all threads waiting on this condition. This method acts
345-
like notify(), but wakes up all waiting threads instead of one. If the
346-
calling thread has not acquired the lock when this method is called,
344+
"""Wake up all tasks waiting on this condition. This method acts
345+
like notify(), but wakes up all waiting tasks instead of one. If the
346+
calling task has not acquired the lock when this method is called,
347347
a RuntimeError is raised.
348348
"""
349349
self.notify(len(self._waiters))

0 commit comments

Comments
 (0)