pub fn run_binary_heap_timer<T>(
options: TimerOptions,
callback: impl FnMut(&mut Vec<Delayed<T>>, &mut Vec<T>) -> TimerLoopAction,
)
Expand description
Run a timer loop backed by a binary heap structure.
The precision of the timer loop is not constrained by the algorithm itself but by the resolution of the time source.
This algorithm also has lower bookkeeping overhead when it is not contended and offers a very low minimum latency however performance degrades as the number of scheduled jobs increases.