Skip to content

Commit

Permalink
Fix typo mentioning threads instead of tasks (python#123203)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhikaruevans authored Aug 23, 2024
1 parent 126910e commit 58fdb16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/asyncio/locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ def _notify(self, n):
fut.set_result(False)

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

0 comments on commit 58fdb16

Please sign in to comment.