- Companion
- object
Value members
Constructors
Creates a new Promise.
Creates a new Promise.
- Value Params
- executor
A callback used to initialize the promise. This callback is passed two arguments: a resolve callback used to resolve the promise with a value or the result of another promise, and a reject callback used to reject the promise with a provided reason or error.
Inherited 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.
- Inherited from
- Promise
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).
- Inherited from
- Promise
- Inherited from
- Promise
- Inherited from
- Promise
- Inherited from
- Promise
- Inherited from
- Promise
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.
- Inherited from
- Promise