Reset the internal flag to false. Subsequently, tasks calling wait() will block until set() is called to set the internal flag to true again.
(self)
| 192 | fut.set_result(True) |
| 193 | |
| 194 | def clear(self): |
| 195 | """Reset the internal flag to false. Subsequently, tasks calling |
| 196 | wait() will block until set() is called to set the internal flag |
| 197 | to true again.""" |
| 198 | self._value = False |
| 199 | |
| 200 | async def wait(self): |
| 201 | """Block until the internal flag is true. |
no outgoing calls