Documents injecute 1.x · Migrating from 0.x
Skip to content

Interface: StopLifecycleOptions ​

Defined in: src/utils/lifecycle.ts:207

Options of running.stop().

Example ​

ts
await running.stop({ signal: AbortSignal.timeout(25_000) });

Properties ​

signal? ​

optional signal?: AbortSignalLike

Defined in: src/utils/lifecycle.ts:213

Passed to every undo function. Once it aborts, the runner gives each remaining step one turn of the event loop instead of waiting for it: it calls the remaining undo functions with the aborted signal (their cue to take the fast path), then disposes. Steps that don't finish in time are reported.

Released under the MIT License.