TAwaitable.wait

Waits until the event occurs or the specified timeout expires.

Calling wait() for an event that has already occurred is a no-op.

  1. void wait()
  2. bool wait(Duration timeout)
    interface TAwaitable
    bool
    wait
    (
    Duration timeout
    )

Return Value

Type: bool

Whether the event was triggered before the timeout expired.

Meta