pub trait Executor {
// Required method
fn spawn(&self, future: impl Future<Output = ()> + Send + 'static);
}
Expand description
An Executor that is used to spawn futures
Required Methods§
Object Safety§
This trait is not object safe.
pub trait Executor {
// Required method
fn spawn(&self, future: impl Future<Output = ()> + Send + 'static);
}
An Executor that is used to spawn futures