vibe.d beta banner
get vibe.d
0.10.1

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

Struct Timer

Represents a timer.

struct Timer ;

Properties

NameTypeDescription
id[get] ulongThe internal ID of the timer.
pending[get] boolTrue if the timer is yet to fire.
unique[get] boolDetermines if this reference is the only one

Methods

NameDescription
opCast ()
rearm (dur, periodic) Resets the timer to the specified timeout
stop () Resets the timer and avoids any firing.
wait () Waits until the timer fires.
waitUninterruptible () Waits until the timer fires.

Aliases

NameDescription
Callback
Authors

Sönke Ludwig

Copyright

© 2012-2020 Sönke Ludwig

License

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