pub fn chan_create(capacity: usize) -> Result<usize>
Create a typed MPMC sync-channel.
capacity: maximum number of queued messages. Returns a capability handle for the channel.
capacity