Kraken\Promise\PromiseInterface::failure PHP Method

failure() public method

Transform Promise's value by applying a function to the Promise's rejection value. Returns a new promise for the transformed result.
See also: PromiseInterface::then
public failure ( callable $onFailure ) : Kraken\Promise\PromiseInterface
$onFailure callable
return Kraken\Promise\PromiseInterface
    public function failure(callable $onFailure);