Skip to main content

Wheel

Type Alias Wheel 

Source
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>

Source

pub fn unbounded(chunk_capacity: usize, now: Instant) -> Self

Creates an unbounded timer wheel with default configuration.

For custom configuration, use WheelBuilder.