asyncio.Condition.wait()

coroutine wait()

Wait until notified.

If the calling coroutine 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 coroutine. Once awakened, it re-acquires the lock and returns True.

This method is a coroutine.

doc_python
2016-10-07 17:26:44
Comments
Leave a Comment

Please login to continue.