[][src]Trait roa_core::Spawn

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

Executor constraint.

Required methods

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

Spawn a future object

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

Spawn a blocking task object

Loading content...

Implementors

Loading content...