Promise Object Resolvers
Create and chain promises, handle fulfillment and rejection, and settle deferred results from callbacks.
Table of Contents
- Resolve or Reject a Deferred Promise
Create a pending promise, give it to the code waiting for a result, and settle it when a callback provides a value or reports a failure.
- Create an Already Fulfilled Promise
Wrap a known value in an already fulfilled promise so callers can use the standard promise API.
- Create an Already Rejected Promise
Wrap a known exception in an already rejected promise so callers can use the standard promise API.
- Work with Promises
Create, chain, and combine Luminova promises. Handle fulfillment, rejection, and cancellation, or adapt a callback-based task to return a promise.