Function futures_shim::mpsc::channel [] [src]

pub fn channel<T>() -> (Sender<T>, Receiver<T>)

Creates an unbounded mpsc channel

This function is Using std::sync::mpsc::channel behind the scenes, and converting into future_shim's Sender and Receiver

use futures_shim::mpsc;
let (tx, rx) = mpsc::channel::<i8>();