Skip to main content

BoundedWheel

Type Alias BoundedWheel 

Source
pub type BoundedWheel<T> = TimerWheel<T, Slab<WheelEntry<T>>>;
Expand description

A timer wheel backed by a fixed-capacity slab.

Aliased Type§

pub struct BoundedWheel<T> { /* private fields */ }

Implementations§

Source§

impl<T: 'static> BoundedWheel<T>

Source

pub fn bounded(capacity: usize, now: Instant) -> Self

Creates a bounded timer wheel with default configuration.

For custom configuration, use WheelBuilder.