PyDocs

Nav

Networking and Interprocess Communication

Condition.wait

asyncio

async method of Condition (source) not WASI
  • Condition.wait()
Wait until notified.

If the calling task has not acquired the lock when this
method is called, a RuntimeError is raised.

This method releases the underlying lock, and then blocks
until it is awakened by a notify() or notify_all() call for
the same condition variable in another task.  Once
awakened, it re-acquires the lock and returns True.

This method may return spuriously,
which is why the caller should always
re-check the state and be prepared to wait() again.
0 Examples
No examples for asyncio/Condition.wait.
See Also
No see-alsos for asyncio/Condition.wait
0 Notes
No notes for Condition.wait