Execute a callback only if the promiseStatus was rejected.
the PromiseStatus instance for method chaining
Check whether this promise is fulfilled. When true use unwrap
to access
the fulfilled class.
Check whether this promise is rejected. When true use unwrapRejected
to access
the rejected class.
Execute a callback only if the promiseStatus was fulfilled.
the PromiseStatus instance for method chaining
Access the fulfilled data serialised into the class set as the fulfilled class. Check isFulfilled
before calling this method.
when unwrapping a rejected Promise
Access the rejected data serialised into the class set as the rejected class. Check isRejected
before calling this method.
when unwrapping a fulfilled Promise
A class which represents the outcome of an action which can either succeed or fail. See
httpFetch
for an example on how it can be used.