Function async_unsync::bounded::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.