Promise
Represents the completion of an asynchronous operation
Value members
Concrete methods
Attaches a callback for only the rejection of the Promise.
Attaches a callback for only the rejection of the Promise.
- Value Params
- onrejected
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.
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
- Value Params
- onfinally
The callback to execute when the Promise is settled (fulfilled or rejected).
Attaches callbacks for the resolution and/or rejection of the Promise.
Attaches callbacks for the resolution and/or rejection of the Promise.
- Value Params
- onfulfilled
The callback to execute when the Promise is resolved.
- onrejected
The callback to execute when the Promise is rejected.