vibe.d beta banner
get vibe.d
0.8.4

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

Struct Timer

Represents a timer.

struct Timer ;

Fields

NameTypeDescription
m_magicNumber uint

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 Resets the timer to the specified timeout
stop Resets the timer and avoids any firing.
wait Waits until the timer fires.
Authors

Sönke Ludwig

Copyright

© 2012-2017 RejectedSoftware e.K.

License

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