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

x/proc/legacy/mod.ts>MultiCloseReader

A better way to work with processes in Deno.
Go to Latest
class MultiCloseReader
implements [Deno.Reader], [Deno.Closer]
Re-export
import { MultiCloseReader } from "https://deno.land/x/proc@0.20.30/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>