AbortSignalLike interface
Allows the request to be aborted upon firing of the "abort" event. Compatible with the browser built-in AbortSignal and common polyfills.
Properties
aborted | Indicates if the signal has already been aborted. |
Methods
add |
Add new "abort" event listener, only support "abort" event. |
remove |
Remove "abort" event listener, only support "abort" event. |
Property Details
aborted
Indicates if the signal has already been aborted.
aborted: boolean
Property Value
boolean
Method Details
addEventListener("abort", (this: AbortSignalLike, ev: any) => any, any)
Add new "abort" event listener, only support "abort" event.
function addEventListener(type: "abort", listener: (this: AbortSignalLike, ev: any) => any, options?: any)
Parameters
- type
-
"abort"
- listener
-
(this: AbortSignalLike, ev: any) => any
- options
-
any
removeEventListener("abort", (this: AbortSignalLike, ev: any) => any, any)
Remove "abort" event listener, only support "abort" event.
function removeEventListener(type: "abort", listener: (this: AbortSignalLike, ev: any) => any, options?: any)
Parameters
- type
-
"abort"
- listener
-
(this: AbortSignalLike, ev: any) => any
- options
-
any