[][src]Function bi_channel::bi_channel

pub fn bi_channel<M: BiMessage>() -> BiChannelPair<M>

Creates two pair of MPSC channels. The communication involves an "internal" party and an "external" party. The "internal" party holds the internal BiChannel to send Out messages and receive In messages. Vice versa for the "external" party.