Skip to main content
Module

x/uuid/lib/lib.deno_runtime.d.ts>Deno.toAsyncIterator

Deprecated! UUID is part of the deno standard library
Latest
function Deno.toAsyncIterator
import { Deno } from "https://deno.land/x/uuid@v0.1.2/lib/lib.deno_runtime.d.ts";
const { toAsyncIterator } = Deno;

Turns r into async iterator.

 for await (const chunk of toAsyncIterator(reader)) {
     console.log(chunk)
 }

Returns

AsyncIterableIterator<Uint8Array>