Idiomatic representation of { buffer, bytesRead }

Kevin Smith zenparsing at
Thu Mar 5 23:50:15 UTC 2015

> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list