pub trait Executor: Send + Sync {
// Required method
fn spawn_boxed(&self, fut: BoxFuture<'static, ()>);
}Available on crate feature
executor or docsrs only.Expand description
Future task system call interface.
Required Methods§
Sourcefn spawn_boxed(&self, fut: BoxFuture<'static, ()>)
fn spawn_boxed(&self, fut: BoxFuture<'static, ()>)
Spawns a task that polls the given boxed future with output () to completion.