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 prommise is rejected with a GuzzleHttp\Promise\AggregateException
if the number of fulfilled promises is less than the desired $count.
integer |
$count |
Total number of promises. |
mixed |
$promises |
Promises or values. |
|
PromiseInterface |