How about awaiting Arrays ?

T.J. Crowder tj.crowder at
Fri Mar 3 16:54:32 UTC 2017

On Fri, Mar 3, 2017 at 4:51 PM, Michał Wadas <michalwadas at> wrote:
> Actually I would go with
> await ...expr;
> As sugar for:
> await Promise.all(Array.from(expr))

Which is great for `Promise.all`, but leaves us without `race` or things
that may be added in future (like Andrea's `any`). (Granted `all` has to be
the dominant use case...)

Why the `Array.from` part of that?

-- T.J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list