UNPKG

abort-utils

Version:

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

6 lines (5 loc) 247 B
/** * Link multiple controllers so that when one aborts, they all abort with the same reason. * @param controllers The controllers to link. */ export declare function linkControllers(...controllers: Array<AbortController | AbortSignal>): void;