UNPKG

abort-utils

Version:

Utility functions to use and combine `AbortSignal` and `AbortController` with Promises

8 lines (7 loc) 218 B
type Handle = { disconnect: VoidFunction; } | { abort: VoidFunction; } | VoidFunction; export declare function onAbort(signal: AbortController | AbortSignal | undefined, ...handles: Handle[]): void; export {};