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

x/proc/legacy/mod.ts>MultiCloseWriter

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

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

Constructors

new
MultiCloseWriter(writer: Deno.Writer & Deno.Closer)

Properties

private
closed: boolean

Methods

close(): void
write(p: Uint8Array): Promise<number>