Timer

Represents a timer.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

Callback
alias Callback = void delegate() @(safe) nothrow
Undocumented in source.

Functions

opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
rearm
void rearm(Duration dur, bool periodic)

Resets the timer to the specified timeout

stop
void stop()

Resets the timer and avoids any firing.

wait
bool wait()

Waits until the timer fires.

waitUninterruptible
bool waitUninterruptible()

Waits until the timer fires.

Properties

id
size_t id [@property getter]

The internal ID of the timer.

pending
bool pending [@property getter]

True if the timer is yet to fire.

unique
bool unique [@property getter]

Determines if this reference is the only one

Meta