zenparsing / es6now

ECMAScript 6 to 5 Compiler and Runtime Environment
MIT License
29 stars 2 forks source link

Syntax-Supported Async Iteration #31

Closed zenparsing closed 10 years ago

zenparsing commented 10 years ago

With the current async iterator design, syntax-supported iteration should be made async-aware. That is, when executed within an async function, it should await promises for iteration results.

GetIterator is also used in various collection types like Array, Map, and Set. I seems like those uses of iteration demand synchronous iterators, however. More thought is needed there.

zenparsing commented 10 years ago

We've decided not to pursue this path.