/plugin/davcal/vendor/sabre/event/tests/ |
H A D | PromiseTest.php | 10 $promise = new Promise(); 11 $promise->fulfill(1); 24 $promise = new Promise(); 25 $promise->reject(1); 39 $promise->fulfill(1); 56 $promise->fulfill(1); 82 $promise->fulfill(4); 96 $promise->reject(4); 143 $promise->fulfill(1); 154 $promise->reject(1); [all …]
|
/plugin/authgooglesheets/vendor/guzzlehttp/promises/ |
H A D | README.md | 50 $promise->then( 79 $promise 111 $promise 187 $promise 209 $promise = new Promise(function () use (&$promise) { 221 $promise = new Promise(function () use (&$promise) { 245 $promise->wait(); 272 promise A with a promise B and unwrap promise A, the value returned by the 283 of the promise. 470 When a promise is fulfilled or rejected with a non-promise value, the promise [all …]
|
H A D | CHANGELOG.md | 37 - Fix promise handling for Iterators of non-unique keys 46 - `wait()` foreign promise compatibility 57 - Fixed coroutine promise memory leak. 80 - Update EachPromise to immediately resolve when the underlying promise iterator 81 is empty. Previously, such a promise would throw an exception when its `wait` 96 - Updating EachPromise to call next on the underlying promise iterator as late
|
/plugin/elasticsearch/vendor/react/promise/src/ |
H A D | LazyPromise.php | 11 private $promise; variable in React\\Promise\\LazyPromise 20 return $this->promise()->then($onFulfilled, $onRejected, $onProgress); 25 return $this->promise()->done($onFulfilled, $onRejected, $onProgress); 30 return $this->promise()->otherwise($onRejected); 35 return $this->promise()->always($onFulfilledOrRejected); 40 return $this->promise()->progress($onProgress); 45 return $this->promise()->cancel(); 52 public function promise() function in React\\Promise\\LazyPromise 54 if (null === $this->promise) { 56 $this->promise [all...] |
H A D | Promise.php | 38 // This promise has a canceller, so we create a new child promise which 40 // followers are also cancelled. We keep a reference to this promise 64 $this->handlers[] = static function (ExtendedPromiseInterface $promise) use ($onFulfilled, $onRejected) { 65 $promise 132 $this->handlers[] = static function (ExtendedPromiseInterface $promise) use ($onFulfilled, $onRejected, $resolve, $reject, $progressHandler) { 133 $promise 151 private function settle(ExtendedPromiseInterface $promise) argument 153 $promise = $this->unwrap($promise); 172 unwrap($promise) global() argument 183 extract($promise) global() argument [all...] |
H A D | Deferred.php | 7 private $promise; variable in React\\Promise\\Deferred 18 public function promise() function in React\\Promise\\Deferred 20 if (null === $this->promise) { 21 $this->promise = new Promise(function ($resolve, $reject, $notify) { 29 return $this->promise; 34 $this->promise(); 41 $this->promise(); 52 $this->promise();
|
/plugin/elasticsearch/vendor/react/promise/ |
H A D | README.md | 7 [![CI status](https://github.com/reactphp/promise/actions/workflows/ci.yml/badge.svg?branch=2.x)](https://github.com/reactphp/promise/actions) 8 [![installs on Packagist](https://img.shields.io/packagist/dt/react/promise?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/react/promise) 16 * [Promise](#promise-1) 19 * [Deferred::promise()](#deferredpromise) 32 * [Promise](#promise-2) 48 * [How promise forwarding works](#how-promise-forwarding-works) 64 It also provides several other useful promise [all...] |
H A D | CHANGELOG.md | 33 $promise->otherwise(function (OverflowException|UnderflowException $e) { 42 $promise->otherwise(function (OverflowException&CacheException $e) { 66 * Fix: Fix checking whether cancellable promise is an object and avoid possible warning. 94 binding to promise, clean up canceller function reference when they are no longer 119 * Fix circular references when resolving with a promise which follows 125 output promise resolves. This was introduced in 42d86b7 (PR #36, released 126 in [v2.3.0](https://github.com/reactphp/promise/releases/tag/v2.3.0)) and 136 foreach ($promises as $promise) { 137 if ($promise instanceof \React\Promise\CancellablePromiseInterface) { 138 $promise [all...] |
/plugin/authgooglesheets/vendor/guzzlehttp/promises/src/ |
H A D | Utils.php | 48 $promise = new Promise([$queue, 'run']); 51 if (Is::pending($promise)) { 52 $promise->resolve($task()); 55 $promise->reject($e); 57 $promise->reject($e); 61 return $promise; 83 'value' => $promise->wait() 134 $results[$key] = $promise->wait(); 156 $promise = Each::of( 170 $promise = $promise->then(function ($results) use ($recursive, &$promises) { [all …]
|
H A D | Is.php | 12 public static function pending(PromiseInterface $promise) argument 14 return $promise->getState() === PromiseInterface::PENDING; 22 public static function settled(PromiseInterface $promise) argument 24 return $promise->getState() !== PromiseInterface::PENDING; 32 public static function fulfilled(PromiseInterface $promise) argument 34 return $promise->getState() === PromiseInterface::FULFILLED; 42 public static function rejected(PromiseInterface $promise) argument 44 return $promise->getState() === PromiseInterface::REJECTED;
|
H A D | functions.php | 111 * @param PromiseInterface $promise Promise or value. 117 function inspect(PromiseInterface $promise) argument 119 return Utils::inspect($promise); 322 function is_fulfilled(PromiseInterface $promise) argument 324 return Is::fulfilled($promise); 334 function is_rejected(PromiseInterface $promise) argument 336 return Is::rejected($promise); 346 function is_settled(PromiseInterface $promise) argument 348 return Is::settled($promise);
|
H A D | Promise.php | 45 $promise = Create::promiseFor($this->result); 46 return $onFulfilled ? $promise->then($onFulfilled) : $promise; 186 $promise = $handler[0]; 190 if (Is::settled($promise)) { 204 $promise->resolve($f($value)); 207 $promise->resolve($value); 210 $promise->reject($value); 213 $promise->reject($reason); 215 $promise->reject($reason);
|
H A D | Create.php | 24 $promise = new Promise($wfn, $cfn); 25 $value->then([$promise, 'resolve'], [$promise, 'reject']); 26 return $promise;
|
H A D | EachPromise.php | 72 public function promise() function in GuzzleHttp\\Promise\\EachPromise 114 while ($promise = current($this->pending)) { 116 $promise->wait(); 167 $promise = Create::promiseFor($this->iterable->current()); 174 $this->pending[$idx] = $promise->then(
|
H A D | Each.php | 34 ]))->promise(); 62 ]))->promise();
|
/plugin/webdav/vendor/sabre/event/lib/ |
H A D | coroutine.php | 55 $promise = new Promise(); 63 … $advanceGenerator = function() use (&$advanceGenerator, $generator, $promise, &$lastYieldResult) { 86 )->error(function($reason) use ($promise) { 90 $promise->reject($reason); 106 if (!$generator->valid() && $promise->state === Promise::PENDING) { 107 $promise->fulfill($lastYieldResult); 115 $promise->reject($e); 118 return $promise;
|
/plugin/webdav/vendor/sabre/event/lib/Promise/ |
H A D | functions.php | 76 foreach ($promises as $promise) { 78 $promise->then( 116 $promise = new Promise(); 117 $promise->fulfill($value); 118 return $promise; 131 $promise = new Promise(); 132 $promise->reject($reason); 133 return $promise;
|
/plugin/findologicxmlexport/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ |
H A D | MethodProphecy.php | 32 private $promise; variable in Prophecy\\Prophecy\\MethodProphecy 145 public function will($promise) argument 147 if (is_callable($promise)) { 148 $promise = new Promise\CallbackPromise($promise); 151 if (!$promise instanceof Promise\PromiseInterface) { 154 gettype($promise) 159 $this->promise = $promise; 315 if (null === $this->promise && !$this->voidReturnType) { 418 return $this->promise;
|
/plugin/authgooglesheets/vendor/google/auth/src/HttpHandler/ |
H A D | Guzzle5HttpHandler.php | 82 $promise = new Promise( 94 $futureResponse->then([$promise, 'resolve'], [$promise, 'reject']); 96 return $promise->then(
|
/plugin/elasticsearch/vendor/ezimuel/ringphp/src/Future/ |
H A D | BaseFutureTrait.php | 31 * @param PromiseInterface $promise Promise to shadow with the future. 35 * associated with the supplied promise. 41 PromiseInterface $promise, argument 45 $this->wrappedPromise = $promise; 75 public function promise() function 106 // Get the result and error when the promise is resolved. Note that
|
H A D | CompletedFutureValue.php | 46 public function promise() function in GuzzleHttp\\Ring\\Future\\CompletedFutureValue 65 return $this->promise()->then($onFulfilled, $onRejected, $onProgress);
|
/plugin/ckgdoku/ckeditor/adapters/ |
H A D | jquery.js | 6 …nce"),f=b.data("_ckeditorInstanceLock"),h=this,l=new a.Deferred;k.push(l.promise());if(c&&!f)g&&g.… 9 …ments.callee,100)},0)},null,null,9999)}});var f=new a.Deferred;this.promise=f.promise();a.when.app… 10 …(f.promise());return!0}return g.call(b,d)});if(k.length){var b=new a.Deferred;a.when.apply(this,k)…
|
/plugin/authgooglesheets/vendor/guzzlehttp/guzzle/src/ |
H A D | RedirectMiddleware.php | 107 $promise = $this($nextRequest, $options); 112 $promise, 118 return $promise; 126 private function withTracking(PromiseInterface $promise, $uri, $statusCode) argument 128 return $promise->then(
|
H A D | Pool.php | 78 public function promise() function in GuzzleHttp\\Pool 80 return $this->each->promise(); 109 $pool->promise()->wait();
|
/plugin/ckgedit/ckeditor/adapters/ |
H A D | jquery.js | 6 …nce"),f=b.data("_ckeditorInstanceLock"),h=this,l=new a.Deferred;k.push(l.promise());if(c&&!f)g&&g.… 9 …ments.callee,100)},0)},null,null,9999)}});var f=new a.Deferred;this.promise=f.promise();a.when.app… 10 …(f.promise());return!0}return g.call(b,d)});if(k.length){var b=new a.Deferred;a.when.apply(this,k)…
|