PHP Class React\Promise\RejectedPromise

Inheritance: implements React\Promise\ExtendedPromiseInterface, implements React\Promise\CancellablePromiseInterface
Mostra file Open project: reactphp/promise

Public Methods

Method Description
__construct ( $reason = null )
always ( callable $onFulfilledOrRejected )
cancel ( )
done ( callable $onFulfilled = null, callable $onRejected = null )
otherwise ( callable $onRejected )
then ( callable $onFulfilled = null, callable $onRejected = null )

Method Details

__construct() public method

public __construct ( $reason = null )

always() public method

public always ( callable $onFulfilledOrRejected )
$onFulfilledOrRejected callable

cancel() public method

public cancel ( )

done() public method

public done ( callable $onFulfilled = null, callable $onRejected = null )
$onFulfilled callable
$onRejected callable

otherwise() public method

public otherwise ( callable $onRejected )
$onRejected callable

then() public method

public then ( callable $onFulfilled = null, callable $onRejected = null )
$onFulfilled callable
$onRejected callable