Returns a promise that either resolves with the result of promise, or a value that indicates the execution was aborted.
promise
Note: Because Promises in JS cannot be canceled, an abort signal will not cancel the execution of the promise.
A signal that communicates the process should be aborted.
A promise who's value will be returned if not aborted.
A value indicating if the process was aborted, or the value of promise.
Returns a promise that either resolves with the result of
promise, or a value that indicates the execution was aborted.Note: Because Promises in JS cannot be canceled, an abort signal will not cancel the execution of the promise.