PHP Interface React\Promise\ExtendedPromiseInterface

Inheritance: extends React\Promise\PromiseInterface
Afficher le fichier Open project: reactphp/promise Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

public always ( callable $onFulfilledOrRejected ) : React\Promise\ExtendedPromiseInterface
$onFulfilledOrRejected callable
Résultat React\Promise\ExtendedPromiseInterface

done() public méthode

public done ( callable $onFulfilled = null, callable $onRejected = null ) : void
$onFulfilled callable
$onRejected callable
Résultat void

otherwise() public méthode

public otherwise ( callable $onRejected ) : React\Promise\ExtendedPromiseInterface
$onRejected callable
Résultat React\Promise\ExtendedPromiseInterface