functionsome(Amp\Promise[]$promises,int$required =1):Amp\Promise

Resolves with a two-item array delineating successful and failed Promise results.

The returned promise will only fail if the given number of required promises fail.

Type Parameter Description Default Value
Amp\Promise[] $promises Array of only promises. none
int $required Number of promises that must succeed for the returned promise to succeed. 1