Trait polkadot_node_subsystem_util::reexports::SpawnNamed [−][src]
pub trait SpawnNamed: DynClone + Send + Sync {
fn spawn_blocking(
&self,
name: &'static str,
group: Option<&'static str>,
future: Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>
);
fn spawn(
&self,
name: &'static str,
group: Option<&'static str>,
future: Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>
);
}
Expand description
Something that can spawn tasks (blocking and non-blocking) with an assigned name and optional group.
Required methods
Spawn the given blocking future.
The given group
and name
is used to identify the future in tracing.