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