Protected_Protected_ReadonlyinstanceThe native promise instance.
OptionalreasonThe reason for the rejection of the promise.
The state of the promise, can be pending, fulfilled or rejected.
OptionalvalueThe value of the resolved promise.
Checks if the promise is fulfilled.
Checks if the promise is pending.
Checks if the promise is rejected.
Checks if the promise is resolved.
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Optionalonfinally: (() => void) | nullThe callback to execute when the Promise is settled (fulfilled or rejected).
A Promise for the completion of the callback.
Optionalreason: anyAttaches callbacks for the resolution and/or rejection of the Promise.
A Promise for the completion of which ever callback is executed.
The DeferredPromise class is built on top of the native Promise class. It provides a way to resolve or reject a promise from the outside.
Aracna Reference