Trait polkadot_node_subsystem::gen::Spawner
pub trait Spawner: DynClone + Send + Sync {
// Required methods
fn spawn_blocking(
&self,
name: &'static str,
group: Option<&'static str>,
future: Pin<Box<dyn Future<Output = ()> + Send>>,
);
fn spawn(
&self,
name: &'static str,
group: Option<&'static str>,
future: Pin<Box<dyn Future<Output = ()> + Send>>,
);
}
Expand description
A spawner