Event.wait

bool wait() nothrow @nogc

Wait for the event to be signaled without timeout.

Returns

true if the event is in signaled state, false if the event is uninitialized or another error occured
bool wait(Duration tmout) nothrow @nogc

Wait for the event to be signaled with timeout.

Parameters

tmoutthe maximum time to wait

Returns

true if the event is in signaled state, false if the event was nonsignaled for the given time or

the event is uninitialized or another error occured