Home
last modified time | relevance | path

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

123

/plugin/elasticsearch/vendor/react/promise/src/
DRejectedPromise.php21 …public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgre… argument
23 if (null === $onRejected) {
28 return resolve($onRejected($this->reason));
36 …public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgre… 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);
DPromise.php28 …public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgre… 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 $onProgre… argument
61 return $this->result->done($onFulfilled, $onRejected, $onProgress);
64 …>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) {
[all …]
DLazyPromise.php18 …public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgre… argument
20 return $this->promise()->then($onFulfilled, $onRejected, $onProgress);
23 …public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgre… argument
25 return $this->promise()->done($onFulfilled, $onRejected, $onProgress);
28 public function otherwise(callable $onRejected) argument
30 return $this->promise()->otherwise($onRejected);
DExtendedPromiseInterface.php18 * @param callable|null $onRejected
22 …public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgre… argument
34 * @param callable $onRejected
37 public function otherwise(callable $onRejected); argument
DFulfilledPromise.php21 …public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgre… argument
36 …public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgre… argument
49 public function otherwise(callable $onRejected) argument
/plugin/webdav/vendor/sabre/event/lib/
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/
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,
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);
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
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);
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);
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,
DFulfilledPromise.php28 callable $onRejected = null argument
53 public function otherwise(callable $onRejected) argument
55 return $this->then(null, $onRejected);
/plugin/matrixnotifierwas/vendor/guzzlehttp/guzzle/src/Handler/
DMockHandler.php45 private $onRejected; variable in GuzzleHttp\\Handler\\MockHandler
53 * @param callable|null $onRejected Callback to invoke when the return value is rejected.
55 …iddleware(array $queue = null, callable $onFulfilled = null, callable $onRejected = null): Handler… argument
57 return HandlerStack::create(new self($queue, $onFulfilled, $onRejected));
67 … * @param callable|null $onRejected Callback to invoke when the return value is rejected.
69 …unction __construct(array $queue = null, callable $onFulfilled = null, callable $onRejected = null) argument
72 $this->onRejected = $onRejected;
138 if ($this->onRejected) {
139 ($this->onRejected)($reason);
/plugin/authgooglesheets/vendor/guzzlehttp/guzzle/src/Handler/
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/matrixnotifierwas/vendor/guzzlehttp/promises/src/
DRejectedPromise.php35 callable $onRejected = null argument
38 if (!$onRejected) {
45 $queue->add(static function () use ($p, $reason, $onRejected): void {
49 $p->resolve($onRejected($reason));
60 public function otherwise(callable $onRejected): PromiseInterface argument
62 return $this->then(null, $onRejected);
DPromiseInterface.php27 * @param callable $onRejected Invoked when the promise is rejected.
31 callable $onRejected = null argument
40 * @param callable $onRejected Invoked when the promise is rejected.
42 public function otherwise(callable $onRejected): PromiseInterface; argument
DEach.php27 callable $onRejected = null argument
31 'rejected' => $onRejected,
50 callable $onRejected = null argument
54 'rejected' => $onRejected,
DCoroutine.php88 callable $onRejected = null argument
90 return $this->result->then($onFulfilled, $onRejected);
93 public function otherwise(callable $onRejected): PromiseInterface argument
95 return $this->result->otherwise($onRejected);
DEachPromise.php29 private $onRejected; variable in GuzzleHttp\\Promise\\EachPromise
71 $this->onRejected = $config['rejected'];
119 $this->onFulfilled = $this->onRejected = null;
182 if ($this->onRejected) {
183 ($this->onRejected)(
/plugin/asciidocjs/node_modules/promise/lib/
Dcore.js72 Promise.prototype.then = function(onFulfilled, onRejected) { argument
74 return safeThen(this, onFulfilled, onRejected);
77 handle(this, new Handler(onFulfilled, onRejected, res));
81 function safeThen(self, onFulfilled, onRejected) { argument
85 handle(self, new Handler(onFulfilled, onRejected, res));
114 var cb = self._65 === 1 ? deferred.onFulfilled : deferred.onRejected;
186 function Handler(onFulfilled, onRejected, promise){ argument
188 this.onRejected = typeof onRejected === 'function' ? onRejected : null;
/plugin/asciidocjs/node_modules/promise/domains/
Dcore.js72 Promise.prototype.then = function(onFulfilled, onRejected) { argument
74 return safeThen(this, onFulfilled, onRejected);
77 handle(this, new Handler(onFulfilled, onRejected, res));
81 function safeThen(self, onFulfilled, onRejected) { argument
85 handle(self, new Handler(onFulfilled, onRejected, res));
114 var cb = self._65 === 1 ? deferred.onFulfilled : deferred.onRejected;
186 function Handler(onFulfilled, onRejected, promise){ argument
188 this.onRejected = typeof onRejected === 'function' ? onRejected : null;
/plugin/asciidocjs/node_modules/promise/setimmediate/
Dcore.js72 Promise.prototype.then = function(onFulfilled, onRejected) { argument
74 return safeThen(this, onFulfilled, onRejected);
77 handle(this, new Handler(onFulfilled, onRejected, res));
81 function safeThen(self, onFulfilled, onRejected) { argument
85 handle(self, new Handler(onFulfilled, onRejected, res));
114 var cb = self._65 === 1 ? deferred.onFulfilled : deferred.onRejected;
186 function Handler(onFulfilled, onRejected, promise){ argument
188 this.onRejected = typeof onRejected === 'function' ? onRejected : null;
/plugin/asciidocjs/node_modules/promise/src/
Dcore.js72 Promise.prototype.then = function(onFulfilled, onRejected) { argument
74 return safeThen(this, onFulfilled, onRejected);
77 handle(this, new Handler(onFulfilled, onRejected, res));
81 function safeThen(self, onFulfilled, onRejected) { argument
85 handle(self, new Handler(onFulfilled, onRejected, res));
114 var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;
186 function Handler(onFulfilled, onRejected, promise){ argument
188 this.onRejected = typeof onRejected === 'function' ? onRejected : null;
/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);

123