Protected
_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.
.done is provided as a non-standard means that maps to similar functionality in other promise libraries. As stated by promisejs.org: 'then' is to 'done' as 'map' is to 'forEach'.
.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
getStandard .then method that defers execution until resolved.
Optional
onRejected: null | Reject<TRejected>Same as .then but doesn't trap errors. Exceptions may end up being fatal.
Optional
onRejected: null | Reject<TRejected>Calls the respective handlers once the promise is resolved.
Optional
onRejected: null | Reject<TRejected>
A rejected Resolved. Provided for readability.