pub trait Spawn<F>: 'staticwhere
F: Future + 'static,{
// Required method
fn spawn(&mut self, future: F);
}Expand description
A strategy for spawning futures.
Notably, Send is not required at the Spawn level. If you have a non-Send service, you can implement your own Spawn.