Trait polkadot_node_subsystem::gen::Spawner
source · 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, Global>>
);
fn spawn(
&self,
name: &'static str,
group: Option<&'static str>,
future: Pin<Box<dyn Future<Output = ()> + Send, Global>>
);
}
Expand description
A spawner