Event.wait

bool wait()

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)

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