Method |
Description |
|
abort ( callable $onCancel ) : Kraken\Promise\PromiseInterface |
Transform Promise's value by applying a function to the Promise's cancellation value. Returns a new promise
for the transformed result. |
|
always ( callable $onFulfilledOrRejected ) : Kraken\Promise\PromiseInterface |
Apply cleanup handler that fires regardless of Promise resolution state and suppress return value. |
|
done ( callable $onFulfilled = null, callable $onRejected = null, callable $onCancel = null ) : null |
Consume the Promise's ultimate value if the promise fulfills or handle the ultimate error and cancellation. |
|
failure ( callable $onFailure ) : Kraken\Promise\PromiseInterface |
Transform Promise's value by applying a function to the Promise's rejection value. Returns a new promise
for the transformed result. |
|
isCancelled ( ) : boolean |
Check if Promise is cancelled. |
|
isFulfilled ( ) : boolean |
Check if Promise is fulfilled. |
|
isPending ( ) : boolean |
Check if Promise is still pending. |
|
isRejected ( ) : boolean |
Check if Promise is rejected. |
|
spread ( callable $onFulfilled = null, callable $onRejected = null, callable $onCancel = null ) : Kraken\Promise\PromiseInterface |
Apply then transformation callbacks that automatically spreads received array into separate arguments. |
|
success ( callable $onSuccess ) : Kraken\Promise\PromiseInterface |
Transform Promise's value by applying a function to the Promise's fulfillment value. Returns a new promise
for the transformed result. |
|
then ( callable $onFulfilled = null, callable $onRejected = null, callable $onCancel = null ) : Kraken\Promise\PromiseInterface |
Transform Promise's value by applying a function to the Promise's fulfillment, rejection or cancellation value. |
|