Returns an object with a promise on the way and two methods, resolve() and reject(), to change its state.
resolve()
reject()
Deferred object
Data wrapped in the promise.
Changes the state of the promise to rejected
rejected
Promise.reject()
Changes the state of the promise to resolved
resolved
Promise.resolve()
Generated using TypeDoc
Returns an object with a promise on the way and two methods,
resolve()
andreject()
, to change its state.Deferred object