Function all
Given an array of promises, return a promise that is fulfilled when all the items in the array are fulfilled.
The promise's fulfillment value is an array with fulfillment values at respective positions to the original array. If any promise in the array rejects, the returned promise is rejected with the rejection reason.
Namespace: GuzzleHttp\Promise
Deprecated: all will be removed in guzzlehttp/promises:2.0. Use Utils::all instead.
Located at functions.php
Deprecated: all will be removed in guzzlehttp/promises:2.0. Use Utils::all instead.
Located at functions.php
Parameters summary
mixed |
$promises |
Promises or values. |
boolean |
$recursive = false |
If true, resolves new promises that might have been added to the stack during its own resolution. |
Return value summary
|
PromiseInterface |