Home
last modified time | relevance | path

Searched refs:promise (Results 1 – 25 of 151) sorted by relevance

1234567

/plugin/elasticsearch/vendor/react/promise/tests/
H A DPromiseTest.php47 $promise
58 unset($promise);
70 unset($promise);
82 unset($promise);
95 unset($promise);
108 unset($promise);
120 unset($promise);
141 $promise = new Promise(function () {}, function () use (&$promise) {
145 unset($promise);
158 $promise = new Promise(function () use (&$promise) {
[all …]
H A DFulfilledPromiseTest.php14 $promise = null;
18 if (!$promise) {
22 return $promise;
25 if (!$promise) {
36 if (!$promise) {
55 $promise = new FulfilledPromise(1);
56 $promise->always(function () {
59 unset($promise);
68 $promise = new FulfilledPromise(1);
69 $promise = $promise->then(function () {
[all …]
H A DRejectedPromiseTest.php14 $promise = null;
18 if (!$promise) {
22 return $promise;
28 if (!$promise) {
36 if (!$promise) {
55 $promise = new RejectedPromise(1);
56 $promise->always(function () {
59 unset($promise);
68 $promise = new RejectedPromise(1);
69 $promise = $promise->then(null, function () {
[all …]
H A DFunctionResolveTest.php68 $promise = resolve($thenable);
69 $promise->cancel();
100 $result = resolve(resolve($d->promise()->then(function ($val) {
108 return resolve($d->promise()->then($identity))->then(
132 $p = $d->promise();
148 $p = $d->promise();
159 $deferreds[0]->promise()->then($mock);
165 $promise = $this
169 $this->assertInstanceOf('React\Promise\ExtendedPromiseInterface', resolve($promise));
/plugin/davcal/vendor/sabre/event/tests/
H A DPromiseTest.php10 $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 DREADME.md50 $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 …]
/plugin/elasticsearch/vendor/react/promise/tests/PromiseTest/
H A DCancelTestTrait.php22 $adapter->promise()->cancel();
56 $adapter->promise()
75 $adapter->promise()
96 $adapter->promise()
115 $adapter->promise()
143 $adapter->promise()
160 $promise = $adapter->promise()
173 $promise->cancel();
185 $adapter->promise()
237 $adapter->promise()
[all …]
H A DRejectTestTrait.php26 $adapter->promise()
43 $adapter->promise()
60 $adapter->promise()
77 $adapter->promise()
100 $adapter->promise()
126 $adapter->promise()
205 $promise = $d->promise();
274 $adapter->promise()
294 $adapter->promise()
316 $adapter->promise()
[all …]
H A DPromiseRejectedTestTrait.php29 $adapter->promise()
49 $adapter->promise()
65 $adapter->promise()
93 $adapter->promise()
118 $adapter->promise()
151 $adapter->promise()
174 $adapter->promise()
346 $adapter->promise()
366 $adapter->promise()
382 $adapter->promise()
[all …]
H A DPromiseSettledTestTrait.php18 $this->assertInstanceOf('React\\Promise\\PromiseInterface', $adapter->promise()->then());
27 …$this->assertInstanceOf('React\\Promise\\PromiseInterface', $adapter->promise()->then(null, null, …
37 $this->assertNull($adapter->promise()->cancel());
47 $adapter->promise()->cancel();
56 $this->assertNull($adapter->promise()->done(null, function () {}));
65 $this->assertNull($adapter->promise()->done(null, function () {}, null));
74 $adapter->promise()->progress($this->expectCallableNever());
84 …$this->assertInstanceOf('React\\Promise\\PromiseInterface', $adapter->promise()->always(function (…
H A DPromisePendingTestTrait.php17 $this->assertInstanceOf('React\\Promise\\PromiseInterface', $adapter->promise()->then());
25 …$this->assertInstanceOf('React\\Promise\\PromiseInterface', $adapter->promise()->then(null, null, …
33 $this->assertNull($adapter->promise()->cancel());
41 $this->assertNull($adapter->promise()->done());
49 $this->assertNull($adapter->promise()->done(null, null, null));
58 $adapter->promise()->otherwise($this->expectCallableNever());
66 …$this->assertInstanceOf('React\\Promise\\PromiseInterface', $adapter->promise()->always(function (…
H A DResolveTestTrait.php25 $adapter->promise()
42 $adapter->promise()
59 $adapter->promise()
76 $adapter->promise()
100 $adapter->promise()
128 $adapter->promise()
218 $adapter->promise()
238 $adapter->promise()
260 $adapter->promise()
282 $adapter->promise()
[all …]
H A DPromiseFulfilledTestTrait.php26 $adapter->promise()
46 $adapter->promise()
62 $adapter->promise()
85 $adapter->promise()
110 $adapter->promise()
135 $adapter->promise()
168 $adapter->promise()
263 $adapter->promise()
282 $adapter->promise()
303 $adapter->promise()
[all …]
H A DNotifyTestTrait.php25 $adapter->promise()
50 $adapter->promise()
84 $adapter->promise()
118 $adapter->promise()
139 $promise2 = $adapter2->promise();
152 $adapter->promise()
171 $promise2 = $adapter2->promise();
181 $adapter->promise()
216 $adapter->promise()
247 $adapter->promise()
[all …]
/plugin/elasticsearch/vendor/react/promise/src/
H A DLazyPromise.php11 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 DPromise.php65 $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 DDeferred.php7 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 DUtils.php48 $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 DIs.php12 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 Dfunctions.php111 * @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);
/plugin/elasticsearch/vendor/react/promise/
H A DREADME.md48 * [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.
474 returned promise.
481 Note: The promise returned is always a promise implementing
[all …]
/plugin/webdav/vendor/sabre/event/lib/
H A Dcoroutine.php55 $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 Dfunctions.php76 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/elasticsearch/vendor/guzzlehttp/ringphp/docs/
H A Dfutures.rst14 `React's promise library <https://github.com/reactphp/promise>`_. You should
29 // Use the then() method to use the promise API of the future.
34 You can get the promise used by a future, an instance of
40 $promise = $response->promise();
41 $promise->then(function ($response) {
45 This promise value can be used with React's
46 `aggregate promise functions <https://github.com/reactphp/promise#functions>`_.
85 promise interface for non-blocking access.
102 // response value will be delivered to the promise.
154 $promise = $deferred->promise();
[all …]
/plugin/findologicxmlexport/vendor/phpspec/prophecy/src/Prophecy/Prophecy/
H A DMethodProphecy.php32 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;

1234567