Skip to main content
Module

x/proc/mod2.ts>Writable

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
interface Writable
import { type Writable } from "https://deno.land/x/proc@0.20.19/mod2.ts";

A writable.

Methods

getter
isClosed(): boolean

Indicates this is closed.

close(error?: Error): Promise<void>

Close the writable. This must be called.

Once closed, subsequent calls to write(...) will throw an error.

It is safe to call close() multiple times. The error (or no error) passed on the first call will be honored.

write(item: T): Promise<void>

Write an item.