Trait tasky::FutureExt

source ·
pub trait FutureExt: Future + Sized {
    // Provided method
    fn spawn(self) -> Builder<Self>
       where Self: Send { ... }
}
Expand description

Extend the Future trait.

Provided Methods§

source

fn spawn(self) -> Builder<Self>
where Self: Send,

Spawn a task on a thread pool

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<F> FutureExt for F
where F: Future,