Event.wait

waits for the event to be set

If the event is already set, returns without sleeping.

struct Event
@safe @nogc
void
wait

Parameters

timeout Timeout

sets a timeout for the wait.

Throws

TimeoutExpired if the timeout expires.

Any other exception injected to this fiber using Reactor.throwInFiber

Meta