all()
all(mixed $promises) : \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. |