/// Creates a new Channel, which has storage for a `capacity` items.
/// Depending on the utilized `RingBuf` type, the capacity argument might
/// be ignored and the default capacity might be utilized.
Creates a new Channel, which has storage for a `capacity` items.
Depending on the utilized `RingBuf` type, the capacity argument might
be ignored and the default capacity might be utilized.
Creates a new Channel which has storage for a ` capacity ` items . Depending on the utilized ` RingBuf ` type the capacity argument might be ignored and the default capacity might be utilized .
pub fn with_capacity(capacity: usize) -> Self {
        GenericChannel {
            inner: Mutex::new(ChannelState::new(A::with_capacity(capacity))),
        }
    }
pub fn with_capacity ( capacity : usize ) -> Self { GenericChannel { inner : Mutex :: new ( ChannelState :: new ( A :: with_capacity ( capacity ) ) ) , } }
Creates a new Channel, which has storage for a `capacity` items.
Creates a new Channel which has storage for a ` capacity ` items .
capacity
usize