pub type Wheel<T> = TimerWheel<T, Slab<WheelEntry<T>>>;Expand description
A timer wheel backed by a growable slab.
Aliased Type§
pub struct Wheel<T> { /* private fields */ }Implementations§
Source§impl<T: 'static> Wheel<T>
impl<T: 'static> Wheel<T>
Sourcepub fn unbounded(chunk_capacity: usize, now: Instant) -> Self
pub fn unbounded(chunk_capacity: usize, now: Instant) -> Self
Creates an unbounded timer wheel with default configuration.
now fixes the reference epoch — pass one monotone clock source
(e.g. Instant::now()) here and to every schedule/poll. For custom
configuration, use WheelBuilder.