Home
last modified time | relevance | path

Searched refs:PromiseInterface (Results 1 – 25 of 68) sorted by relevance

123

/plugin/authgooglesheets/vendor/guzzlehttp/promises/src/
Dfunctions.php35 * @return PromiseInterface
49 * @return PromiseInterface
64 * @return PromiseInterface
111 * @param PromiseInterface $promise Promise or value.
117 function inspect(PromiseInterface $promise)
130 * @param PromiseInterface[] $promises Traversable of promises to wait upon.
173 * @return PromiseInterface
196 * @return PromiseInterface
211 * @return PromiseInterface
230 * @return PromiseInterface
[all …]
DIs.php12 public static function pending(PromiseInterface $promise)
14 return $promise->getState() === PromiseInterface::PENDING;
22 public static function settled(PromiseInterface $promise)
24 return $promise->getState() !== PromiseInterface::PENDING;
32 public static function fulfilled(PromiseInterface $promise)
34 return $promise->getState() === PromiseInterface::FULFILLED;
42 public static function rejected(PromiseInterface $promise)
44 return $promise->getState() === PromiseInterface::REJECTED;
DUtils.php43 * @return PromiseInterface
74 * @param PromiseInterface $promise Promise or value.
78 public static function inspect(PromiseInterface $promise)
82 'state' => PromiseInterface::FULFILLED,
86 return ['state' => PromiseInterface::REJECTED, 'reason' => $e->getReason()];
88 return ['state' => PromiseInterface::REJECTED, 'reason' => $e];
90 return ['state' => PromiseInterface::REJECTED, 'reason' => $e];
102 * @param PromiseInterface[] $promises Traversable of promises to wait upon.
151 * @return PromiseInterface
197 * @return PromiseInterface
[all …]
DEach.php24 * @return PromiseInterface
50 * @return PromiseInterface
74 * @return PromiseInterface
85 function ($reason, $idx, PromiseInterface $aggregate) {
DCreate.php12 * @return PromiseInterface
16 if ($value instanceof PromiseInterface) {
38 * @return PromiseInterface
42 if ($reason instanceof PromiseInterface) {
DPromiseInterface.php14 interface PromiseInterface interface
27 * @return PromiseInterface
42 * @return PromiseInterface
/plugin/matrixnotifierwas/vendor/guzzlehttp/promises/src/
DIs.php12 public static function pending(PromiseInterface $promise): bool
14 return $promise->getState() === PromiseInterface::PENDING;
20 public static function settled(PromiseInterface $promise): bool
22 return $promise->getState() !== PromiseInterface::PENDING;
28 public static function fulfilled(PromiseInterface $promise): bool
30 return $promise->getState() === PromiseInterface::FULFILLED;
36 public static function rejected(PromiseInterface $promise): bool
38 return $promise->getState() === PromiseInterface::REJECTED;
DUtils.php43 public static function task(callable $task): PromiseInterface
70 * @param PromiseInterface $promise Promise or value.
72 public static function inspect(PromiseInterface $promise): array
76 'state' => PromiseInterface::FULFILLED,
80 return ['state' => PromiseInterface::REJECTED, 'reason' => $e->getReason()];
82 return ['state' => PromiseInterface::REJECTED, 'reason' => $e];
94 * @param PromiseInterface[] $promises Traversable of promises to wait upon.
138 public static function all($promises, bool $recursive = false): PromiseInterface
184 public static function some(int $count, $promises): PromiseInterface
191 function ($value, $idx, PromiseInterface $p) use (&$results, $count): void {
[all …]
DEach.php28 ): PromiseInterface {
51 ): PromiseInterface {
71 ): PromiseInterface {
76 function ($reason, $idx, PromiseInterface $aggregate): void {
DCreate.php14 public static function promiseFor($value): PromiseInterface
16 if ($value instanceof PromiseInterface) {
39 public static function rejectionFor($reason): PromiseInterface
41 if ($reason instanceof PromiseInterface) {
DPromiseInterface.php16 interface PromiseInterface interface
32 ): PromiseInterface;
42 public function otherwise(callable $onRejected): PromiseInterface;
DCoroutine.php46 final class Coroutine implements PromiseInterface
49 * @var PromiseInterface|null
89 ): PromiseInterface {
93 public function otherwise(callable $onRejected): PromiseInterface
DPromise.php14 class Promise implements PromiseInterface
38 ): PromiseInterface {
62 public function otherwise(callable $onRejected): PromiseInterface
71 if ($this->result instanceof PromiseInterface) {
190 /** @var PromiseInterface $promise */
276 if ($result instanceof PromiseInterface) {
DFulfilledPromise.php15 class FulfilledPromise implements PromiseInterface
36 ): PromiseInterface {
58 public function otherwise(callable $onRejected): PromiseInterface
DRejectedPromise.php15 class RejectedPromise implements PromiseInterface
36 ): PromiseInterface {
60 public function otherwise(callable $onRejected): PromiseInterface
/plugin/matrixnotifierwas/vendor/guzzlehttp/guzzle/src/
DClientTrait.php6 use GuzzleHttp\Promise\PromiseInterface; alias
144 …abstract public function requestAsync(string $method, $uri, array $options = []): PromiseInterface;
157 public function getAsync($uri, array $options = []): PromiseInterface
173 public function headAsync($uri, array $options = []): PromiseInterface
189 public function putAsync($uri, array $options = []): PromiseInterface
205 public function postAsync($uri, array $options = []): PromiseInterface
221 public function patchAsync($uri, array $options = []): PromiseInterface
237 public function deleteAsync($uri, array $options = []): PromiseInterface
DClientInterface.php6 use GuzzleHttp\Promise\PromiseInterface; alias
39 public function sendAsync(RequestInterface $request, array $options = []): PromiseInterface;
68 public function requestAsync(string $method, $uri, array $options = []): PromiseInterface;
DRedirectMiddleware.php7 use GuzzleHttp\Promise\PromiseInterface; alias
50 public function __invoke(RequestInterface $request, array $options): PromiseInterface
78 * @return ResponseInterface|PromiseInterface
124 …private function withTracking(PromiseInterface $promise, string $uri, int $statusCode): PromiseInt…
/plugin/elasticsearch/vendor/ezimuel/ringphp/src/Future/
DBaseFutureTrait.php6 use React\Promise\PromiseInterface; alias
19 /** @var PromiseInterface */
31 * @param PromiseInterface $promise Promise to shadow with the future.
41 PromiseInterface $promise,
73 * @return PromiseInterface
81 * @return PromiseInterface
DCompletedFutureValue.php6 use React\Promise\PromiseInterface; alias
44 * @return PromiseInterface
58 * @return PromiseInterface
DFutureInterface.php4 use React\Promise\PromiseInterface; alias
19 interface FutureInterface extends PromiseInterface, PromisorInterface
/plugin/elasticsearch/vendor/react/promise/src/
Dfunctions.php17 * @return PromiseInterface
56 * @return PromiseInterface
60 if ($promiseOrValue instanceof PromiseInterface) {
76 * @return PromiseInterface
93 * @return PromiseInterface
130 * @return PromiseInterface
156 * @return PromiseInterface
233 * @return PromiseInterface
282 * @return PromiseInterface
/plugin/matrixnotifierwas/vendor/guzzlehttp/guzzle/src/Handler/
DProxy.php5 use GuzzleHttp\Promise\PromiseInterface; alias
27 …atic function (RequestInterface $request, array $options) use ($default, $sync): PromiseInterface {
47 …function (RequestInterface $request, array $options) use ($default, $streaming): PromiseInterface {
/plugin/authgooglesheets/vendor/guzzlehttp/guzzle/src/
DRedirectMiddleware.php6 use GuzzleHttp\Promise\PromiseInterface; alias
47 * @return PromiseInterface
81 * @return ResponseInterface|PromiseInterface
106 /** @var PromiseInterface|ResponseInterface $promise */
124 * @return PromiseInterface
126 private function withTracking(PromiseInterface $promise, $uri, $statusCode)
DClientInterface.php5 use GuzzleHttp\Promise\PromiseInterface; alias
39 * @return PromiseInterface
71 * @return PromiseInterface

123