Skip to main content

create_channel

Function create_channel 

Source
pub fn create_channel(capacity: usize) -> ChanId
Expand description

Create a new SyncChan with the given capacity and register it.

Returns the ChanId to be returned to the creating task as a handle.