[][src]Trait roa::Spawn

pub trait Spawn {
    fn spawn(&self, fut: Pin<Box<dyn Future<Output = ()> + 'static + Send>>);
fn spawn_blocking(&self, task: Box<dyn FnOnce() + 'static + Send>); }

Executor constraint.

Required methods

fn spawn(&self, fut: Pin<Box<dyn Future<Output = ()> + 'static + Send>>)

Spawn a future object

fn spawn_blocking(&self, task: Box<dyn FnOnce() + 'static + Send>)

Spawn a blocking task object

Loading content...

Implementors

Loading content...