Skip to main content
Module

x/proc/mod1.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.24/mod1.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.

If an error is passed on close, it is propagated forward.

The error (or undefined) passed on the first call will be honored. Error conditions passed on subsequent calls to close will be ignored.

write(item: T): Promise<void>

Write an item.