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 reject callback used to reject the promise with a provided reason or error.
Optional
reason: anyThe rejection reason.
The signal that is aborted if abort method is called.
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.