import { toAsyncIterator } from "https://deno.land/x/deno@v0.1.12/js/io.ts";
Turns r
into async iterator.
for await (const chunk of readerIterator(reader)) {
console.log(chunk)
}
import { toAsyncIterator } from "https://deno.land/x/deno@v0.1.12/js/io.ts";
Turns r
into async iterator.
for await (const chunk of readerIterator(reader)) {
console.log(chunk)
}