The native promise object.
- Source:
- See:
Methods
-
then(onFullfilled, onRejected) → {external:Promise}
-
Register fullfillment and rejection handlers to the promise.
Parameters:
Name Type Description onFullfilled
function fullfillment handler called with the resolved value. onRejected
function rejection handler called with the rejection cause. - Source:
Returns:
a promise resolving to the result value of the called handler.- Type
- external:Promise