Function async_ringbuffer::ring_buffer
[−]
[src]
pub fn ring_buffer(capacity: usize) -> (Writer, Reader)
Creates a new RingBuffer with the given capacity, and returns a handle for writing and a handle for reading.
Panics
Panics if capacity is 0
or greater than isize::max_value()
.