Skip to main content

bounded_async

Function bounded_async 

Source
pub fn bounded_async<T>(size: usize) -> (MAsyncTx<Array<T>>, AsyncRx<Array<T>>)
where T: Send + 'static,
Expand description

Creates a bounded channel with a pair of async sender and receiver.

As a special case, a channel size of 0 is not supported and will be treated as a channel of size 1.