Kraken\Promise\PromiseInterface::spread PHP Method

spread() public method

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