Function some
Initiate a competitive race between multiple promises or values (values will become immediately fulfilled promises).
When count amount of promises have been fulfilled, the returned promise is fulfilled with an array that contains the fulfillment values of the winners in order of resolution.
This promise is rejected with a GuzzleHttp\Promise\AggregateException
if the number of
fulfilled promises is less than the desired $count.
Namespace: GuzzleHttp\Promise
Deprecated: some will be removed in guzzlehttp/promises:2.0. Use Utils::some instead.
Located at functions.php
Deprecated: some will be removed in guzzlehttp/promises:2.0. Use Utils::some instead.
Located at functions.php
Parameters summary
integer |
$count |
Total number of promises. |
mixed |
$promises |
Promises or values. |
Return value summary
|
PromiseInterface |