Function polkadot_overseer::spawn
source · pub fn spawn<S, M, TK, Ctx, E, SubSys>(
spawner: &mut S,
message_tx: MeteredSender<MessagePacket<M>>,
signal_tx: MeteredSender<OverseerSignal>,
unbounded_meter: Meter,
ctx: Ctx,
s: SubSys,
subsystem_name: &'static str,
futures: &mut FuturesUnordered<BoxFuture<'static, Result<(), SubsystemError>>>
) -> Result<OrchestratedSubsystem<M>, SubsystemError>where
S: Spawner,
M: Debug + Send + 'static,
TK: TaskKind,
Ctx: SubsystemContext<Message = M>,
E: Error + Send + Sync + 'static + From<OrchestraError>,
SubSys: Subsystem<Ctx, E>,
Expand description
Spawn task of kind self
using spawner S
.