Skip to content

TimerDuration

[Source]

A validated timer duration in milliseconds. The allowed range is 1 to 18,446,744,073,709 milliseconds (~213,503 days). The upper bound ensures the value can be safely converted to nanoseconds without overflowing U64.

Construct with MakeTimerDuration(milliseconds), which returns (TimerDuration | ValidationFailure). Pass to set_timer() to create a one-shot timer.

type TimerDuration is
  Constrained[U64 val, TimerDurationValidator val] val

Type Alias For