Function barrage::new

source · []
pub fn new<T: Clone + Unpin>(
    capacity: Option<usize>
) -> (Sender<T>, Receiver<T>)
Expand description

Create a new channel with the given capacity. If None is passed, it will be unbounded.