ManualEvent.wait

Acquires ownership and waits until the signal is emitted.

Note that in order not to miss any emits it is necessary to use the overload taking an integer.

  1. int wait()
    struct ManualEvent
    @safe shared
    int
    wait
    ()
  2. int wait(int emit_count)
  3. int wait(Duration timeout, int emit_count)

Throws

May throw an InterruptException if the task gets interrupted using Task.interrupt().

Meta