Zum Inhalt springen
Deutsch

StartupTask

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

StartupTask = (signal) => Promise<void> | void

Defined in: src/CoordinatedStartupOptions.ts:46

One unit of startup work.

The signal aborts when the task’s phase runs out of budget, when another task of a phase that does not recover fails, and when the system is terminated while startup is still running — so a task that hands it to whatever it waits on (fetch, a driver that takes one) stops instead of finishing for nobody. A task that ignores it is abandoned all the same: its phase does not wait for it.

AbortSignal

Promise<void> | void