Function txrx::factories::futures::from_future[][src]

pub fn from_future<Fut, Sched>(
    scheduler: Sched,
    future: Fut
) -> FutureSender<Fut, Sched> where
    Fut: 'static + Send + Future,
    Fut::Output: 'static + Send,
    Sched: Scheduler
Expand description

Convert a future to a Sender.

All async futures can be converted to a sender. This makes it easy to use whatever tasking system that might already be in place, and use it to execute async tasks.