Protected
deferredPrivate
Readonly
promiseProtected
stateAttaches a callback for only the rejection of the Promise.
Optional
onrejected: null | ((reason) => TResult | PromiseLike<TResult>)The 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.
Optional
onfinally: null | (() => void)The callback to execute when the Promise is settled (fulfilled or rejected).
A Promise for the completion of the callback.
Private
makeCalls the specified deferredOperation if the CompletablePromise state is Pending. Then sets the CompletablePromise state to the specified one.
The new state assigned to the CompletablePromise.
The method of the DeferredPromise that should be called.
Resolves the Promise with a value or the result of another Promise. This method call will succeed only if the Promise state was Pending, and it will irreversibly change the Promise state to Fulfilled.
The value or the result of another Promise.
Attaches callbacks for the resolution and/or rejection of the Promise.
Optional
onfulfilled: null | ((value) => TResult1 | PromiseLike<TResult1>)The callback to execute when the Promise is resolved.
Optional
onrejected: null | ((reason) => TResult2 | PromiseLike<TResult2>)The callback to execute when the Promise is rejected.
A Promise for the completion of which ever callback is executed.
Attempts to resolve the Promise with a value or the result of another Promise. If retrieving {@param getValue} result fails, reject function will be called instead.
A function that returns the value or the result of another Promise.
Generated using TypeDoc
A Promise that can be explicitly resolved or rejected.