Reset the internal flag to false. Subsequently, threads calling wait() will block until set() is called to set the internal flag to true again.
(self)
| 639 | self._cond.notify_all() |
| 640 | |
| 641 | def clear(self): |
| 642 | """Reset the internal flag to false. |
| 643 | |
| 644 | Subsequently, threads calling wait() will block until set() is called to |
| 645 | set the internal flag to true again. |
| 646 | |
| 647 | """ |
| 648 | with self._cond: |
| 649 | self._flag = False |
| 650 | |
| 651 | def wait(self, timeout=None): |
| 652 | """Block until the internal flag is true. |
no outgoing calls