Skip to content

Timers

[Source]

A hierarchical set of timing wheels.

actor tag Timers

Constructors

create

[Source]

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

Returns


Public Behaviours

apply

[Source]

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


cancel

[Source]

Cancels a timer.

be cancel(
  timer: Timer tag)

Parameters


dispose

[Source]

Dispose of this set of timing wheels.

be dispose()