Fulfill a promise
Use these functions to satisfy a promise with either success (resolve
)
or failure (reject
). These functions are not exported, but rather, are
passed as arguments to the action
function you pass to a promise
constructor.
resolve(value = NULL) reject(reason)
value |
The result from a successful calculation. |
reason |
An error or string that explains why the operation failed. |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.