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. - Tick
Future - Future returned by
Interval::tick.
Functions§
- interval
- Create a new
Intervalthat fires everyperiod.