MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / notify_all

Method notify_all

pymongo/_asyncio_lock.py:303–309  ·  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

301 fut.set_result(False)
302
303 def notify_all(self) -> None:
304 """Wake up all tasks waiting on this condition. This method acts
305 like notify(), but wakes up all waiting tasks instead of one. If the
306 calling task has not acquired the lock when this method is called,
307 a RuntimeError is raised.
308 """
309 self.notify(len(self._waiters))

Callers 7

test_notify_allMethod · 0.80
test_cancelled_wakeupMethod · 0.80
_process_changeMethod · 0.80
_resetMethod · 0.80
_process_changeMethod · 0.80
_resetMethod · 0.80

Calls 1

notifyMethod · 0.95

Tested by 3

test_notify_allMethod · 0.64
test_cancelled_wakeupMethod · 0.64