Struct Timer
Represents a timer.
struct Timer
;
Properties
Name | Type | Description |
---|---|---|
id [get]
|
ulong | The internal ID of the timer. |
pending [get]
|
bool | True if the timer is yet to fire. |
unique [get]
|
bool | Determines if this reference is the only one |
Methods
Name | Description |
---|---|
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
Name | Description |
---|---|
Callback
|