Skip to main content

chan_create

Function chan_create 

Source
pub fn chan_create(capacity: usize) -> Result<usize, Error>
Expand description

Create a typed MPMC sync-channel.

capacity: maximum number of queued messages. Returns a capability handle for the channel.