Timers¶
A hierarchical set of timing wheels.
actor tag Timers
Constructors¶
create¶
Create a timer handler with the specified number of slop bits. No slop bits means trying for nanosecond resolution. 10 slop bits is approximately microsecond resolution, 20 slop bits is approximately millisecond resolution.
new tag create(
slop: USize val = 20)
: Timers tag^
Parameters¶
- slop: USize val = 20
Returns¶
- Timers tag^
Public Behaviours¶
apply¶
Sets a timer. Fire it if need be, schedule it on the right timing wheel, then rearm the timer.
be apply(
timer: Timer iso)
Parameters¶
- timer: Timer iso
cancel¶
Cancels a timer.
be cancel(
timer: Timer tag)
Parameters¶
- timer: Timer tag
dispose¶
Dispose of this set of timing wheels.
be dispose()