( maxListeners: number = DEFAULT_MAX_LISTENERS, )
| 14 | * @returns AbortController with configured listener limit |
| 15 | */ |
| 16 | export function createAbortController( |
| 17 | maxListeners: number = DEFAULT_MAX_LISTENERS, |
| 18 | ): AbortController { |
| 19 | const controller = new AbortController() |
| 20 | setMaxListeners(maxListeners, controller.signal) |
| 21 | return controller |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Propagates abort from a parent to a weakly-referenced child controller. |
no outgoing calls
no test coverage detected