MCPcopy Index your code
hub / github.com/python/cpython / notify_all

Method notify_all

Lib/asyncio/locks.py:343–349  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

341 fut.set_result(False)
342
343 def notify_all(self):
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,
347 a RuntimeError is raised.
348 """
349 self.notify(len(self._waiters))
350
351
352class Semaphore(_ContextManagerMixin, mixins._LoopBoundMixin):

Callers 14

test_notify_allMethod · 0.95
test_notify_allMethod · 0.95
test_cancelled_wakeupMethod · 0.95
_releaseMethod · 0.45
_exitMethod · 0.45
resetMethod · 0.45
abortMethod · 0.45
advanceMethod · 0.45
_check_notifyMethod · 0.45
notificationMethod · 0.45
cancelMethod · 0.45

Calls 1

notifyMethod · 0.95

Tested by 7

test_notify_allMethod · 0.76
test_notify_allMethod · 0.76
test_cancelled_wakeupMethod · 0.76
advanceMethod · 0.36
_check_notifyMethod · 0.36
notificationMethod · 0.36