pub trait Spawner {
// Required method
fn spawn(&self, future: Pin<Box<dyn Future<Output = ()> + Send>>);
}Expand description
A spawner trait for executing futures on an async runtime.
This abstraction allows you to use whatever concurrency model you want (tokio, async-std, embassy, etc.).
Function pointers and closures automatically implement this trait via the blanket implementation.