Function run_hierarchical_timer

Source
pub fn run_hierarchical_timer<T, R: Resolution>(
    options: TimerOptions,
    callback: impl FnMut(&mut Vec<Delayed<T>>, &mut Vec<T>) -> TimerLoopAction,
)
Expand description

Run a timer loop with a hierarchical timing wheel algorithm and the given resolution.

The precision of the timer loop is constrained by the resolution used (among other factors) but generally provides predictable latency even for large numbers of scheduled jobs.