Amp\Promise\all

function all(Amp\Promise[] $promises): Amp\Promise

Returns a promise that succeeds when all promises succeed, and fails if any promise fails. Returned promise succeeds with an array of values used to succeed each contained promise, with keys corresponding to the array of promises.

Type Parameter Description Default Value
Amp\Promise[] $promises Array of only promises. none