Lines Matching refs:PromiseInterface
43 * @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
206 function ($value, $idx, PromiseInterface $p) use (&$results, $count) {
238 * @return PromiseInterface
257 * @return PromiseInterface
266 $results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value];
269 $results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason];