Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.14/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>