pub fn create_channel(capacity: usize) -> ChanId
Create a new SyncChan with the given capacity and register it.
SyncChan
Returns the ChanId to be returned to the creating task as a handle.
ChanId