Function mio_misc::channel::channel[][src]

pub fn channel<T>(
    notifier: Arc<dyn Notifier>,
    id: NotificationId
) -> (Sender<T>, Receiver<T>)
Expand description

Creates a new asynchronous/unbounded channel, where the Sender::send function, in addition to sending a message, triggers a notification on Poll