Function dialectic_tokio_mpsc::channel[][src]

pub fn channel(buffer: usize) -> (Sender, Receiver)

Create a bounded mpsc channel for transporting dynamically typed values.

This is a wrapper around tokio::sync::mpsc::channel::<Box<dyn Any + Send>>. See tokio::sync::mpsc::channel.

Examples

let (tx, rx) = dialectic_tokio_mpsc::channel(1);