Optional
resolver: Executor<T[]>Protected
Optional
_errorProtected
_resolvedProtected
Optional
_resultProtected
_stateProtected
_onShortcut for trapping a rejection.
Shortcut for trapping a rejection but will allow exceptions to propagate within the onRejected handler.
Will yield for a number of milliseconds from after this promise resolves. If the promise is already resolved, the delay will start from now.
A promise that yields to the current execution and executes after a delay.
Will yield for a number of milliseconds from the time called before continuing.
A promise that yields to the current execution and executes after a delay.
.doneNow is provided as a non-standard means that synchronously resolves as the end of a promise chain. As stated by promisejs.org: 'then' is to 'done' as 'map' is to 'forEach'. It is the underlying method by which propagation occurs.
Shortcut to for handling either resolve or reject.
Shortcut to for handling either resolve or reject but will allow exceptions to propagate within the handler.
Shortcut to for handling either resolve or reject. Returns the current promise instead. You may not need an additional promise result, and this will not create a new one.
Optional
synchronous: booleanProtected
getProtected
getProtected
getSimplifies the use of a map function on an array of results when the source is assured to be an array.
Simplifies the use of a reduce function on an array of results when the source is assured to be an array.
Optional
i: numberOptional
array: T[]Optional
initialValue: TSimplifies the use of a reduce function on an array of results when the source is assured to be an array.
Optional
i: numberOptional
array: T[]Standard .then method that defers execution until resolved.
Same as .then but doesn't trap errors. Exceptions may end up being fatal.
Calls the respective handlers once the promise is resolved.
Same as 'thenSynchronous' but does not return the result. Returns the current promise instead. You may not need an additional promise result, and this will not create a new one.
Static
fulfilledGenerated using TypeDoc
By providing an ArrayPromise we expose useful methods/shortcuts for dealing with array results.