drone_core::sync::spsc::ring
pub fn channel<T, E>(capacity: usize) -> (Sender<T, E>, Receiver<T, E>)
Creates a new channel, returning the sender/receiver halves.
capacity is the capacity of the underlying ring buffer.
capacity
The Sender half is used to write values to the ring buffer. The Receiver half is a Stream that reads the values from the ring buffer.
Sender
Receiver
Stream