Home
last modified time | relevance | path

Searched refs:onRejected (Results 1 – 25 of 37) sorted by relevance

12

/plugin/elasticsearch/vendor/react/promise/src/
H A DRejectedPromise.php21 public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) argument
23 if (null === $onRejected) {
28 return resolve($onRejected($this->reason));
36 public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) argument
38 if (null === $onRejected) {
42 $result = $onRejected($this->reason);
53 public function otherwise(callable $onRejected) argument
55 if (!_checkTypehint($onRejected, $this->reason)) {
59 return $this->then(null, $onRejected);
H A DPromise.php28 public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) argument
31 return $this->result->then($onFulfilled, $onRejected, $onProgress);
35 return new static($this->resolver($onFulfilled, $onRejected, $onProgress));
47 $this->resolver($onFulfilled, $onRejected, $onProgress),
58 public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) argument
61 return $this->result->done($onFulfilled, $onRejected, $onProgress);
64 $this->handlers[] = static function (ExtendedPromiseInterface $promise) use ($onFulfilled, $onRejected) {
66 ->done($onFulfilled, $onRejected);
74 public function otherwise(callable $onRejected) argument
76 return $this->then(null, static function ($reason) use ($onRejected) {
115 resolver(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) global() argument
[all...]
H A DLazyPromise.php18 public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) argument
20 return $this->promise()->then($onFulfilled, $onRejected, $onProgress);
23 public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) argument
25 return $this->promise()->done($onFulfilled, $onRejected, $onProgress);
28 public function otherwise(callable $onRejected) argument
30 return $this->promise()->otherwise($onRejected);
H A DExtendedPromiseInterface.php12 * `$onRejected` throw or return a rejected promise.
18 * @param callable|null $onRejected
22 public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null); argument
28 * $promise->then(null, $onRejected);
31 * Additionally, you can type hint the `$reason` argument of `$onRejected` to catch
34 * @param callable $onRejected
37 public function otherwise(callable $onRejected); argument
H A DFulfilledPromise.php21 public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) argument
36 public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) argument
49 public function otherwise(callable $onRejected) argument
H A DPromiseInterface.php16 * * `$onRejected` will be invoked once the promise is rejected and passed the
23 * `$onFulfilled` or `$onRejected`, whichever is called, or will reject with
29 * 1. Only one of `$onFulfilled` or `$onRejected` will be called,
31 * 2. `$onFulfilled` and `$onRejected` will never be called more
36 * @param callable|null $onRejected
40 public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null); argument
/plugin/webdav/vendor/sabre/event/lib/
H A DPromise.php89 * @param callable $onRejected
92 function then(callable $onFulfilled = null, callable $onRejected = null) { argument
103 $this->subscribers[] = [$subPromise, $onFulfilled, $onRejected];
113 $this->invokeCallback($subPromise, $onRejected);
126 * @param callable $onRejected
129 function otherwise(callable $onRejected) { argument
131 return $this->then(null, $onRejected);
295 * @param callable $onRejected
299 function error(callable $onRejected) { argument
301 return $this->otherwise($onRejected);
/plugin/authgooglesheets/vendor/guzzlehttp/promises/src/
H A DEach.php22 * @param callable $onRejected
29 callable $onRejected = null argument
33 'rejected' => $onRejected
48 * @param callable $onRejected
56 callable $onRejected = null argument
60 'rejected' => $onRejected,
H A DRejectedPromise.php28 callable $onRejected = null argument
31 if (!$onRejected) {
38 $queue->add(static function () use ($p, $reason, $onRejected) {
42 $p->resolve($onRejected($reason));
56 public function otherwise(callable $onRejected) argument
58 return $this->then(null, $onRejected);
H A DPromiseInterface.php25 * @param callable $onRejected Invoked when the promise is rejected.
31 callable $onRejected = null argument
40 * @param callable $onRejected Invoked when the promise is rejected.
44 public function otherwise(callable $onRejected); argument
H A Dfunctions.php254 * @param callable $onRejected
263 callable $onRejected = null argument
265 return Each::of($iterable, $onFulfilled, $onRejected);
279 * @param callable $onRejected
289 callable $onRejected = null argument
291 return Each::ofLimit($iterable, $concurrency, $onFulfilled, $onRejected);
H A DCoroutine.php91 callable $onRejected = null argument
93 return $this->result->then($onFulfilled, $onRejected);
96 public function otherwise(callable $onRejected) argument
98 return $this->result->otherwise($onRejected);
H A DFulfilledPromise.php28 callable $onRejected = null argument
53 public function otherwise(callable $onRejected) argument
55 return $this->then(null, $onRejected);
H A DEachPromise.php25 private $onRejected; variable in GuzzleHttp\\Promise\\EachPromise
67 $this->onRejected = $config['rejected'];
126 $this->onFulfilled = $this->onRejected = null;
187 if ($this->onRejected) {
189 $this->onRejected,
H A DPromise.php33 callable $onRejected = null argument
37 $this->handlers[] = [$p, $onFulfilled, $onRejected];
52 return $onRejected ? $rejection->then(null, $onRejected) : $rejection;
55 public function otherwise(callable $onRejected) argument
57 return $this->then(null, $onRejected);
/plugin/authgooglesheets/vendor/guzzlehttp/guzzle/src/Handler/
H A DMockHandler.php21 private $onRejected; variable in GuzzleHttp\\Handler\\MockHandler
29 * @param callable $onRejected Callback to invoke when the return value is rejected.
36 callable $onRejected = null argument
38 return HandlerStack::create(new self($queue, $onFulfilled, $onRejected));
48 * @param callable $onRejected Callback to invoke when the return value is rejected.
53 callable $onRejected = null argument
56 $this->onRejected = $onRejected;
120 if ($this->onRejected) {
121 call_user_func($this->onRejected, $reason);
/plugin/davcal/vendor/sabre/event/lib/
H A DPromise.php101 * @param callable $onRejected
104 function then(callable $onFulfilled = null, callable $onRejected = null) { argument
109 $this->subscribers[] = [$subPromise, $onFulfilled, $onRejected];
115 $this->invokeCallback($subPromise, $onRejected);
128 * @param callable $onRejected
131 function error(callable $onRejected) { argument
133 return $this->then(null, $onRejected);
/plugin/elasticsearch/vendor/ezimuel/ringphp/src/Future/
H A DCompletedFutureValue.php62 callable $onRejected = null, argument
65 return $this->promise()->then($onFulfilled, $onRejected, $onProgress);
H A DBaseFutureTrait.php85 callable $onRejected = null, argument
88 return $this->wrappedPromise->then($onFulfilled, $onRejected, $onProgress);
/plugin/authgooglesheets/vendor/guzzlehttp/guzzle/src/
H A DRetryMiddleware.php73 $this->onRejected($request, $options)
103 private function onRejected(RequestInterface $req, array $options) function in GuzzleHttp\\RetryMiddleware
/plugin/elasticsearch/vendor/ezimuel/ringphp/src/
H A DCore.php329 * @param callable $onRejected Invoked when the future rejected
337 callable $onRejected = null, argument
341 $future->then($onFulfilled, $onRejected, $onProgress),
/plugin/authgooglesheets/vendor/guzzlehttp/promises/
H A DREADME.md43 `$onFulfilled` followed by an optional `$onRejected` function.
55 // $onRejected
73 will reject the promise and trigger the `$onRejected` callbacks).
128 When a promise is rejected, the `$onRejected` callbacks are invoked with the
145 If an exception is thrown in an `$onRejected` callback, subsequent
146 `$onRejected` callbacks are invoked with the thrown exception as the reason.
163 `$onRejected` callback.
179 If an exception is not thrown in a `$onRejected` callback and the callback
181 invoked using the value returned from the `$onRejected` callback.
315 - `then(callable $onFulfilled, callable $onRejected) : PromiseInterface`
[all …]
/plugin/revealjs/lib/js/
H A Dpromise.js2onRejected;if(null!==t){var o;try{o=t(e._value)}catch(f){return void i(n.promise,f)}r(n.promise,o)…
/plugin/elasticsearch/vendor/react/promise/
H A DREADME.md142 All consumers are notified by having `$onRejected` (which they registered via
183 $transformedPromise = $promise->then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null);
194 * `$onRejected` will be invoked once the promise is rejected and passed the
201 `$onFulfilled` or `$onRejected`, whichever is called, or will reject with
207 1. Only one of `$onFulfilled` or `$onRejected` will be called,
209 2. `$onFulfilled` and `$onRejected` will never be called more
235 $promise->done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null);
241 It will cause a fatal error if either `$onFulfilled` or `$onRejected` throw or
255 $promise->otherwise(callable $onRejected);
261 $promise->then(null, $onRejected);
[all...]
/plugin/xlsx2dw/packages/jszip/
H A Djszip.js4354 Promise.prototype["catch"] = function (onRejected) {
4355 return this.then(null, onRejected);
4357 Promise.prototype.then = function (onFulfilled, onRejected) { argument
4359 typeof onRejected !== 'function' && this.state === REJECTED) {
4364 var resolver = this.state === FULFILLED ? onFulfilled : onRejected;
4367 this.queue.push(new QueueItem(promise, onFulfilled, onRejected));
4372 function QueueItem(promise, onFulfilled, onRejected) { argument
4378 if (typeof onRejected === 'function') {
4379 this.onRejected = onRejected;
4393 unwrap(this.promise, this.onRejected, value);

12