Lines Matching refs:promises
102 * @param PromiseInterface[] $promises Traversable of promises to wait upon.
106 public static function inspectAll($promises) argument
109 foreach ($promises as $key => $promise) {
130 public static function unwrap($promises) argument
133 foreach ($promises as $key => $promise) {
148 * @param mixed $promises Promises or values.
153 public static function all($promises, $recursive = false) argument
157 $promises,
170 $promise = $promise->then(function ($results) use ($recursive, &$promises) {
171 foreach ($promises as $promise) {
173 return self::all($promises, $recursive);
195 * @param mixed $promises Promises or values.
199 public static function some($count, $promises) argument
205 $promises,
236 * @param mixed $promises Promises or values.
240 public static function any($promises) argument
242 return self::some(1, $promises)->then(function ($values) {
255 * @param mixed $promises Promises or values.
259 public static function settle($promises) argument
264 $promises,