Amp\Promise\any

functionany(Amp\Promise\Promise[]$promises):Amp\Promise

Returns a promise that is resolved when all promises are resolved. The returned promise will not fail.

Returned promise succeeds with a two-item array delineating successful and failed promise results, with keys identical and corresponding to the original given array.

This function is the same as some() with the notable exception that it will never fail even if all promises in the array resolve unsuccessfully.

Type Parameter Description Default Value
Amp\Promise\Promise[] $promises No documentation. none