pub const fn channel<T>(capacity: usize) -> Channel<T>
Creates a new bounded channel with the given capacity.
capacity
Panics, if capacity is zero.