Home
last modified time | relevance | path

Searched refs:onFulfilledOrRejected (Results 1 – 6 of 6) sorted by relevance

/plugin/elasticsearch/vendor/react/promise/src/
H A DFulfilledPromise.php51 public function always(callable $onFulfilledOrRejected) argument
53 return $this->then(function ($value) use ($onFulfilledOrRejected) {
54 return resolve($onFulfilledOrRejected())->then(function () use ($value) {
H A DRejectedPromise.php59 public function always(callable $onFulfilledOrRejected) argument
61 return $this->then(null, function ($reason) use ($onFulfilledOrRejected) {
62 return resolve($onFulfilledOrRejected())->then(function () use ($reason) {
H A DExtendedPromiseInterface.php81 * @param callable $onFulfilledOrRejected
84 public function always(callable $onFulfilledOrRejected); argument
H A DPromise.php85 public function always(callable $onFulfilledOrRejected) argument
87 return $this->then(static function ($value) use ($onFulfilledOrRejected) {
88 return resolve($onFulfilledOrRejected())->then(function () use ($value) {
91 }, static function ($reason) use ($onFulfilledOrRejected) {
92 return resolve($onFulfilledOrRejected())->then(function () use ($reason) {
H A DLazyPromise.php33 public function always(callable $onFulfilledOrRejected) argument
35 return $this->promise()->always($onFulfilledOrRejected);
/plugin/elasticsearch/vendor/react/promise/
H A DREADME.md281 $newPromise = $promise->always(callable $onFulfilledOrRejected);
286 It arranges for `$onFulfilledOrRejected` to be called, with no arguments,
289 * If `$promise` fulfills, and `$onFulfilledOrRejected` returns successfully,
291 * If `$promise` fulfills, and `$onFulfilledOrRejected` throws or returns a
294 * If `$promise` rejects, and `$onFulfilledOrRejected` returns successfully,
296 * If `$promise` rejects, and `$onFulfilledOrRejected` throws or returns a