pub trait Spawn: Send + Sync {
// Required method
fn spawn(&self, fut: BoxFuture<()>);
}Expand description
Runs a future to completion in the background.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".