pub fn channel<Msg>(buffer: usize) -> (MessageBox<Msg>, MessageQueue<Msg>)
Expand description

Constructs an in-memory channel and returns the output and input halves. The parameter specifies the number of messages that are allowed to be pending in the channel.