0

I'm looking for a Browser JS library to allow me to use async iterators for streams in the browser. I found many libraries that are for Node.js, but I want it to work in the browser using the stream API.

I want my code to be similar to this:

const fStreamReader = file.stream().getReader();

for await (const value of fStreamReader) {
  console.log(value);
}

References:
https://github.com/whatwg/streams/issues/778
https://jakearchibald.com/2017/async-iterators-and-generators/#making-streams-iterate

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.