Kraken\Promise\PromiseInterface::then PHP Method

then() public method

Returns a new promise for the transformed result.
public then ( callable $onFulfilled = null, callable $onRejected = null, callable $onCancel = null ) : Kraken\Promise\PromiseInterface
$onFulfilled callable
$onRejected callable
$onCancel callable
return Kraken\Promise\PromiseInterface
    public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onCancel = null);