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

x/proc/legacy/mod.ts>MultiCloseReader

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
class MultiCloseReader
implements [Deno.Reader], [Deno.Closer]
Re-export
import { MultiCloseReader } from "https://deno.land/x/proc@0.20.17/legacy/mod.ts";

Wrapper for a Reader & Closer that allows you to safely call close() multiple times.

Constructors

new
MultiCloseReader(reader: Deno.Reader & Deno.Closer)

Properties

private
_done: Deferred<void>
private
closed: boolean
readonly
done: Promise<void>

Methods

close(): void
read(p: Uint8Array): Promise<number | null>