vibe.d beta banner
get vibe.d
0.8.4

Asynchronous I/O that doesn’t get in your way, written in D

LocalManualEvent.wait - multiple declarations

Function LocalManualEvent.wait

Acquires ownership and waits until the signal is emitted.

int wait() @safe;

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

Throws

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

Function LocalManualEvent.wait

Acquires ownership and waits until the emit count differs from the given one or until a timeout is reached.

int wait (
  int emit_count
) @safe;

int wait (
  core.time.Duration timeout,
  int emit_count
) @safe;

Throws

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

Authors

Leonid Kramer, Sönke Ludwig, Manuel Frischknecht

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.