Event.wait

Waits for the time specified, returning true if awoken, false on timeout

  1. void wait()
  2. bool wait(Duration duration)
    class Event
    final
    bool
    wait
    (
    Duration duration
    )

Parameters

duration Duration

the Duration to indicate timeout period

Return Value

Type: bool

true if awoken, false on timeout

Throws

FatalException on fatal error with the underlying mechanism

InterruptedException if the wait() was interrupted for some reason

Meta