Kraken\Promise\PromiseInterface::success PHP Method

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);