Function Event.wait

waits for the event to be set

void wait (
  Timeout timeout = Timeout(TscTimePoint(9223372036854775807L))
) @nogc @safe;

If the event is already set, returns without sleeping.

Parameters

NameDescription
timeout sets a timeout for the wait.

Throws

TimeoutExpired if the timeout expires.

Any other exception injected to this fiber using Reactor.throwInFiber