pub fn channel_with_capacity<T>(capacity: usize) -> (Sender<T>, Receiver<T>)
where
    T: MachineImpl,
{
    let (s, r) = crossbeam::channel::bounded::<T>(capacity);
    wrap(s, r)
}
/// Create a channel with a fixed capacity.
Create a channel with a fixed capacity.
Create a channel with a fixed capacity .
pub fn channel_with_capacity<T>(capacity: usize) -> (Sender<T>, Receiver<T>)
where
    T: MachineImpl,
{
    let (s, r) = crossbeam::channel::bounded::<T>(capacity);
    wrap(s, r)
}
pub fn channel_with_capacity < T > ( capacity : usize ) -> ( Sender < T > , Receiver < T > ) where T : MachineImpl , { let ( s , r ) = crossbeam :: channel :: bounded :: < T > ( capacity ) ; wrap ( s , r ) }
Create a channel with a fixed capacity.
Create a channel with a fixed capacity .
capacity
usize