referrerpolicy=no-referrer-when-downgrade

Function polkadot_node_subsystem::spawn

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,
    subsystem: SubSys,
    subsystem_name: &'static str,
    futures: &mut FuturesUnordered<Pin<Box<dyn Future<Output = Result<(), SubsystemError>> + Send>>>,
) -> 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.