Type Definition dialectic_tokio_mpsc::Chan[][src]

type Chan<P> = Chan<P, Sender, Receiver>;

Shorthand for a Chan using a bounded Sender and Receiver.

Examples

use dialectic::prelude::*;
use dialectic::types::Done;
use dialectic_tokio_mpsc as mpsc;

let _: (mpsc::Chan<Done>, mpsc::Chan<Done>) =
    Done::channel(|| mpsc::channel(1));