Function channel

Source
pub const fn channel<T>(capacity: usize) -> Channel<T>
Expand description

Creates a new bounded channel with the given capacity.

ยงPanics

Panics, if capacity is zero.