tc39 / proposal-async-iteration

Asynchronous iteration for JavaScript
https://tc39.github.io/proposal-async-iteration/
MIT License
859 stars 44 forks source link

Collecting asynchronous collections #107

Closed Ginden closed 7 years ago

Ginden commented 7 years ago

We have multiple ways to collect synchronous iterables - like Array.from, Promise.all, new Set(iterable) etc.

Though, the only way to consume asynchronous iterable is currently single syntax construct or manual consumption. I believe that's a serious flaw that would significantly slow down adoption of async iterators.

domenic commented 7 years ago

You're welcome to work on a new proposal for your new use case. It's out of scope of this proposal.