Condition.notify

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, an $(D_PSYMBOL Exception) is thrown.

This method wakes up at most $(D_PSYMBOL 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 $(D_PSYMBOL wait()) call until it can reacquire the lock. Since $(D_PSYMBOL notify()) does not release the lock, its caller should.

class Condition
void
notify
(
size_t n = 1
)

Meta