vibe.d beta banner
get vibe.d
0.8.1

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

Interface ManualEvent

A manually triggered cross-task event.

interface ManualEvent ;

Properties

NameTypeDescription
emitCount[get]intA counter that is increased with every emit() call

Methods

NameDescription
emitEmits the signal, waking up all owners of the signal.
waitAcquires ownership and waits until the signal is emitted.
waitAcquires ownership and waits until the emit count differs from the given one.
waitAcquires ownership and waits until the emit count differs from the given one or until a timeout is reached.
waitUninterruptibleSame as wait, but defers throwing any InterruptException.

Note

the ownership can be shared between multiple fibers and threads.

Authors

Leonid Kramer, Sönke Ludwig, Manuel Frischknecht

Copyright

© 2012-2015 RejectedSoftware e.K.

License

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