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, a RuntimeError is raised.
(self)
| 320 | fut.set_result(False) |
| 321 | |
| 322 | def notify_all(self): |
| 323 | """Wake up all threads waiting on this condition. This method acts |
| 324 | like notify(), but wakes up all waiting threads instead of one. If the |
| 325 | calling thread has not acquired the lock when this method is called, |
| 326 | a RuntimeError is raised. |
| 327 | """ |
| 328 | self.notify(len(self._waiters)) |
| 329 | |
| 330 | |
| 331 | class Semaphore(_ContextManagerMixin, mixins._LoopBoundMixin): |
no test coverage detected