Skip to content

Function: getAbortCtrl()

getAbortCtrl(options): AbortController

Defined in: packages/fetch/src/getAbortCtrl.ts:10

Add AbortController to options if not present and propagate external abort signal if provided.

Parameters

options

Partial<FetchOptions>

The fetch options object.

Returns

AbortController

The AbortController instance associated with the options.