Creates a new abortable promise.
A callback that initializes the promise.
The resolve callback used to resolve the promise with a value or the result of another promise.
The fulfillment result.
The reject callback used to reject the promise with a provided reason or error.
The rejection reason.
Optional
reason: anyThe signal that is aborted if abort method is called.
Static
[species]Aborts the signal passed to the executor and instantly rejects the promise with the reason.
Optional
reason: unknownThe abort reason. If not explicitly provided, it defaults to an AbortError.
Subscribes this promise to be aborted when the signal is aborted.
The signal that aborts this promise.
This promise.
The promise that can be aborted.