Kevin Smith schrieb:


Wouldn't `.next()` rather need to return an IteratorResult<Promise<
DataView>>?


No, because the "done-ness" of the iteration is itself asynchronous.  You
don't know whether you're done iterating until the promise resolves.

https://github.com/zenparsing/async-iteration/

Oh, right, I should've read your first post properly - you were talking about future *asynchronous* generators.

 Bergi
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to