PHP Interface React\Promise\ExtendedPromiseInterface

Inheritance: extends React\Promise\PromiseInterface
Exibir arquivo Open project: reactphp/promise Interface Usage Examples

Public Methods

Method Description
always ( callable $onFulfilledOrRejected ) : React\Promise\ExtendedPromiseInterface
done ( callable $onFulfilled = null, callable $onRejected = null ) : void
otherwise ( callable $onRejected ) : React\Promise\ExtendedPromiseInterface

Method Details

always() public method

public always ( callable $onFulfilledOrRejected ) : React\Promise\ExtendedPromiseInterface
$onFulfilledOrRejected callable
return React\Promise\ExtendedPromiseInterface

done() public method

public done ( callable $onFulfilled = null, callable $onRejected = null ) : void
$onFulfilled callable
$onRejected callable
return void

otherwise() public method

public otherwise ( callable $onRejected ) : React\Promise\ExtendedPromiseInterface
$onRejected callable
return React\Promise\ExtendedPromiseInterface