Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/proc/examples/deps.ts>readerToBytesUnbuffered

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
function readerToBytesUnbuffered
import { readerToBytesUnbuffered } from "https://deno.land/x/proc@0.19.9/examples/deps.ts";

Transform a Reader to an AsyncIterableIterator<Uint8Array>, unbuffered. This will read bytes as soon as they are available.

Parameters

reader: Deno.Reader & Deno.Closer

The reader.

Returns

AsyncIterableIterator<Uint8Array>