Idiomatic representation of { buffer, bytesRead }

Bergi a.d.bergi at web.de
Fri Mar 6 00:21:20 UTC 2015


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


More information about the es-discuss mailing list