linkAbortSignal
Calls
onAbort
once when the signal of the caller aborts - right away when it is aborted already. The signal only
triggers the abort controller HyperFetch keeps for the request, so it ends like
request.abort()
does. Returns the
function that stops listening.
Import
import { linkAbortSignal } from "@hyper-fetch/core"
Source
Package
Parameters
linkAbortSignal(signal: undefined | AbortSignal, onAbort: () => void)
Parameters
| Name | Type | Description |
|---|---|---|
| signal | | |
| onAbort | |
Returns
() => void