The type of the promise result.
Creates a new AbortablePromise.
The type of the promise result.
The promise executor function.
The abortable properties.
Attaches a callback for only the rejection of the Promise.
Optionalonrejected: PromiseOnRejected<TResult> | nullThe callback to execute when the Promise is rejected.
A Promise for the completion of the callback.
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Optionalonfinally: PromiseOnFinally | nullThe callback to execute when the Promise is settled (fulfilled or rejected).
A Promise for the completion of the callback.
Attaches callbacks for the resolution and/or rejection of the Promise.
Optionalonfulfilled: PromiseOnFulfilled<T, TResult1> | nullThe callback to execute when the Promise is resolved.
Optionalonrejected: PromiseOnRejected<TResult2> | nullThe callback to execute when the Promise is rejected.
A Promise for the completion of which ever callback is executed.
StaticwithCreates a new AbortablePromise with resolvers.
The abortable properties.
A new AbortablePromise with resolvers.
A Promise that is abortable via an AbortSignal.
When the signal is aborted, the onAbort callback is called and the promise is rejected. If the signal is already aborted when the promise is created, the onAbort callback is called immediately and the promise is rejected. The executor function is still called in all cases to maintain consistency with the standard Promise behavior.
The executor function is called immediately (synchronously) upon construction, similar to a standard Promise.