asyncio.Condition.notify()

notify(n=1)

By default, wake up one coroutine waiting on this condition, if any. If the calling coroutine has not acquired the lock when this method is called, a RuntimeError is raised.

This method wakes up at most n of the coroutines waiting for the condition variable; it is a no-op if no coroutines are waiting.

Note

An awakened coroutine does not actually return from its wait() call until it can reacquire the lock. Since notify() does not release the lock, its caller should.

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

Please login to continue.