[][src]Function barrage::new

pub fn new<T: Clone + Unpin>(
    capacity: Option<usize>
) -> (Sender<T>, Receiver<T>)

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