/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 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 = resolve(\call_user_func($this->factory)); 58 $this->promise = new RejectedPromise($exception); 60 $this->promise = new RejectedPromise($exception); [all …]
|
H A D | Promise.php | 65 $promise 133 $promise 153 $promise = $this->unwrap($promise); 155 if ($promise === $this) { 168 $handler($promise); 174 $promise = $this->extract($promise); 176 while ($promise instanceof self && null !== $promise->result) { 177 $promise = $this->extract($promise->result); 180 return $promise; 186 $promise = $promise->promise(); [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/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/elasticsearch/vendor/react/promise/ |
H A D | README.md | 48 * [How promise forwarding works](#how-promise-forwarding-works) 96 $promise = $deferred->promise(); 103 The `promise` method returns the promise of the deferred. 115 $promise = $deferred->promise(); 164 The promise interface provides the common interface for all promise 268 $promise 348 $promise->cancel(); 396 returned promise. Accepts either a non-promise value, or another promise. 478 returned promise. 485 Note: The promise returned is always a promise implementing [all …]
|
H A D | CHANGELOG.md | 10 $promise->otherwise(function (OverflowException|UnderflowException $e) { 19 $promise->otherwise(function (OverflowException&CacheException $e) { 96 * Fix circular references when resolving with a promise which follows 113 foreach ($promises as $promise) { 115 $promise->cancel(); 122 * Fix circular references when resolving a promise with itself (#71). 133 promise that follows the state of this thenable (#52). 139 * Allow cancellation of promises returned by functions working on promise 149 * Fix stack error when resolving a promise in its own fulfillment or 184 when initialized with a promise instead of a value/reason. [all …]
|
/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. 41 PromiseInterface $promise, argument 45 $this->wrappedPromise = $promise; 75 public function promise() function
|
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)…
|