Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/proc/src/writable-iterable.ts>WritableIterable#close

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
method WritableIterable.prototype.close
import { WritableIterable } from "https://deno.land/x/proc@0.20.14/src/writable-iterable.ts";

Close the iterable. 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.

Parameters

optional
error: Error

Returns

Promise<void>