pub fn new_blocking<T>(
capacity: usize,
) -> (RingBufferProducer<T, BlockingWaiter, BlockingWaiter>, RingBufferConsumer<T, BlockingWaiter, BlockingWaiter>)Expand description
Creates a new ring buffer with the specified capacity and blocking waiters.
Returns the producer and consumer ends. The wait methods will block until available.
See with_waiters for more documentation.
Requires the ‘std’ feature.
§Panics
If capacity is zero.