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

x/proc/legacy/mod.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.17/legacy/mod.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>