Type of the Default Promise
Type of the Cancelation Data.
Creates an instance of NopePromise.
NopePromise
Optional
value: T | PromiseLike<T>Optional
reason: anyOptional
cancel: ((reason) => void)Optional
taskId: stringReadonly
[toAttribute holding the Task-ID assinged by a dispatcher.
NopePromise
Static
Readonly
[species]Attaches a callback for only the rejection of the Promise.
A Promise for the completion of the callback.
Optional
onrejected: ((reason) => TResult | PromiseLike<TResult>)The callback to execute when the Promise is rejected.
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
A Promise for the completion of the callback.
Optional
onfinally: (() => void)The callback to execute when the Promise is settled (fulfilled or rejected).
Attaches callbacks for the resolution and/or rejection of the Promise.
A Promise for the completion of which ever callback is executed.
Optional
onfulfilled: ((value) => TResult1 | PromiseLike<TResult1>)The callback to execute when the Promise is resolved.
Optional
onrejected: ((reason) => TResult2 | PromiseLike<TResult2>)The callback to execute when the Promise is rejected.
Static
allCreates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
A new Promise.
An iterable of Promises.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
A new Promise.
An array of Promises.
Static
allCreates a Promise that is resolved with an array of results when all of the provided Promises resolve or reject.
A new Promise.
An array of Promises.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve or reject.
A new Promise.
An array of Promises.
Static
anyThe any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
A new Promise.
An array or iterable of Promises.
The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
A new Promise.
An array or iterable of Promises.
Static
raceCreates a Promise that is resolved or rejected when any of the provided Promises are resolved or rejected.
A new Promise.
An iterable of Promises.
Creates a Promise that is resolved or rejected when any of the provided Promises are resolved or rejected.
A new Promise.
An array of Promises.
Static
rejectStatic
resolveCreates a new resolved promise.
A resolved promise.
Creates a new resolved promise for the provided value.
A promise whose internal state matches the provided promise.
A promise.
Creates a new resolved promise for the provided value.
A promise whose internal state matches the provided promise.
A promise.
Generated using TypeDoc
A Custom Implementation of Nope-Promise. They are cancelable.
Export
Implements