Skip to main content

ring_channel

Function ring_channel 

Source
pub fn ring_channel<T>(capacity: usize) -> (RingSender<T>, RingReceiver<T>)
Expand description

Creates a ring-buffer channel pair with the given capacity.