pub fn ring_buffer<T>(capacity: usize) -> (Producer<T>, Consumer<T>)Expand description
Creates a bounded SPMC queue with the given capacity.
Capacity is rounded up to the next power of two.
ยงPanics
Panics if capacity is zero or too large to round to a power of two.