pub trait Spawn {
// Required method
fn spawn<F>(&self, future: F)
where F: Future<Output = ()> + Send + 'static;
}Expand description
A trait for spawning futures.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".