Closed zenparsing closed 10 years ago
We are currently using the function context to determine whether to make for/of async-compatible. We need to use explicit syntax for this.
For now, let's try using something like:
for async (let item of collection) { // ... }
For the implementation, let's try this:
obj[Symbol.asyncIterator]
obj[Symbol.iterator]
Done
We are currently using the function context to determine whether to make for/of async-compatible. We need to use explicit syntax for this.
For now, let's try using something like:
For the implementation, let's try this:
obj[Symbol.asyncIterator]
obj[Symbol.iterator]
.