]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo mentioning threads instead of tasks (#123203)
authorKevin Evans <evans.kevinh@gmail.com>
Fri, 23 Aug 2024 16:24:12 +0000 (09:24 -0700)
committerGitHub <noreply@github.com>
Fri, 23 Aug 2024 16:24:12 +0000 (21:54 +0530)
Lib/asyncio/locks.py

index aaee8ff0702923319a95fa3346cb003781db5f17..f2f8b7ec858096967dc8a578585088100665c190 100644 (file)
@@ -341,9 +341,9 @@ class Condition(_ContextManagerMixin, mixins._LoopBoundMixin):
                 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))