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

x/proc/legacy/mod.ts>MultiCloseWriter

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