TOneshotEvent

A simple TAwaitable event triggered by just calling a trigger() method.

Constructors

this
this()
Undocumented in source.

Members

Functions

addCallback
void addCallback(void delegate() dg)
Undocumented in source. Be warned that the author may not have intended to support it.
removeCallback
bool removeCallback(void delegate() dg)
Undocumented in source. Be warned that the author may not have intended to support it.
trigger
void trigger()

Triggers the event.

wait
void wait()
Undocumented in source. Be warned that the author may not have intended to support it.
wait
bool wait(Duration timeout)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From TAwaitable

wait
void wait()

Waits until the event occurs.

wait
bool wait(Duration timeout)

Waits until the event occurs or the specified timeout expires.

addCallback
void addCallback(void delegate() dg)

Registers a callback that is called if the event occurs.

removeCallback
bool removeCallback(void delegate() dg)

Removes a previously added callback.

Meta