all()
all(mixed $promises, bool $recursive = false) : \GuzzleHttp\Promise\PromiseInterface
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.
Parameters
mixed | $promises | Promises or values. |
bool | $recursive | If true, resolves new promises that might have been added to the stack during its own resolution. |