Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Kraken
Promise
PromiseInterface
failure
Kraken\Promise\PromiseInterface::failure PHP Method
PromiseInterface Interface Documentation
Show file
Open project: kraken-php/framework
failure()
public
method
Transform Promise's value by applying a function to the Promise's rejection value. Returns a new promise for the transformed result.
See also:
PromiseInterface::then
public
failure
(
callable
$onFailure
) :
Kraken\Promise\PromiseInterface
$onFailure
callable
return
Kraken\Promise\PromiseInterface
public function failure(callable $onFailure);
PromiseInterface
abort
always
done
failure
isCancelled
isFulfilled
isPending
isRejected
spread
success
then