UNPKG

abort-utils

Version:

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

7 lines (6 loc) 305 B
export declare function abortAll(iterable: Iterable<AbortController>): void; /** * Aborts all controllers in an Array/Set and empties it. * @param list - The Array/Set of controllers to abort and clear. */ export declare function abortAllAndClear(list: AbortController[] | Set<AbortController>): void;