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
success
Kraken\Promise\PromiseInterface::success PHP Method
PromiseInterface Interface Documentation
Show file
Open project: kraken-php/framework
success()
public
method
Transform Promise's value by applying a function to the Promise's fulfillment value. Returns a new promise for the transformed result.
See also:
PromiseInterface::then
public
success
(
callable
$onSuccess
) :
Kraken\Promise\PromiseInterface
$onSuccess
callable
return
Kraken\Promise\PromiseInterface
public function success(callable $onSuccess);
PromiseInterface
abort
always
done
failure
isCancelled
isFulfilled
isPending
isRejected
spread
success
then