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)
| 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)) |