Skip to main content

Module interval

Module interval 

Source
Expand description

Interval — periodic timer that fires at a fixed rate.

Each call to tick() returns a future that resolves at the next scheduled deadline. Missed ticks are tracked: if the executor falls behind, the next tick() returns immediately and reduces the missed-tick counter.

Structs§

Interval
Periodic timer created by interval.
TickFuture
Future returned by Interval::tick.

Functions§

interval
Create a new Interval that fires every period.