Skip to content
Buy me a coffee

whenAborted

whenAborted(signal): Promise<unknown>

Defined in: src/register.ts:37

A promise that resolves with the signal’s reason once it aborts (immediately if it already has). It never rejects. The listener is removed when the signal aborts.

AbortSignal

Promise<unknown>