pub trait Executor: Send + Sync {
    // Required method
    fn spawn_boxed(&self, fut: BoxFuture<'static, ()>);
}
Available on crate feature executor only.
Expand description

Future task system call interface.

Required Methods§

source

fn spawn_boxed(&self, fut: BoxFuture<'static, ()>)

Spawns a task that polls the given boxed future with output () to completion.

Implementors§