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

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