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
PromiseCancelled
failure
Kraken\Promise\PromiseCancelled::failure PHP Method
PromiseCancelled Class Documentation
Show file
Open project: kraken-php/framework
failure()
public
method
public
failure
(
callable
$onFailure
)
$onFailure
callable
public function failure(callable $onFailure) { return $this->then(null, $onFailure); }
PromiseCancelled
__construct
__destruct
abort
always
cancel
done
failure
getPromise
getReason
getValue
isCancelled
isFulfilled
isPending
isRejected
reject
resolve
spread
success
then
throwError