pub trait Spawn {
fn spawn(
&self,
fut: Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>
);
fn spawn_blocking(&self, task: Box<dyn FnOnce() + Send + 'static, Global>);
}
Expand description
Executor constraint.
Required methods
Spawn a future object