Skip to content
Classcore/nodev0.11.0

CoordinatedStartup

class CoordinatedStartup extends CoordinatedLifecycle<StartupPhase>

Member visibility

Filter class members by access level.

constructor

Constructs a new instance of the CoordinatedStartup class

CoordinatedStartup()

addTask()

Adds a task to a startup phase. The task gets a signal that aborts when it runs past timeoutMs or when startup is aborted. Pass it to any request the task makes.

public override addTask(
    phase: StartupPhase,
    taskName: string,
    task: LifecycleTask["task"],
    timeoutMs?: number
): void

canAddTask()

protected canAddTask(): boolean

canRemoveTask()

protected canRemoveTask(): boolean

getTaskType()

protected getTaskType(): string

isAborted()

protected override isAborted(): boolean