Method | Description | |
---|---|---|
__construct ( callable $resolver, callable $canceller = null ) | ||
always ( callable $onFulfilledOrRejected ) | ||
cancel ( ) | ||
done ( callable $onFulfilled = null, callable $onRejected = null ) | ||
otherwise ( callable $onRejected ) | ||
then ( callable $onFulfilled = null, callable $onRejected = null ) |
Method | Description | |
---|---|---|
call ( callable $callback ) | ||
reject ( $reason = null ) | ||
resolve ( $value = null ) | ||
resolver ( callable $onFulfilled = null, callable $onRejected = null ) | ||
result ( ) | ||
settle ( React\Promise\ExtendedPromiseInterface $result ) |
public __construct ( callable $resolver, callable $canceller = null ) | ||
$resolver | callable | |
$canceller | callable |