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

x/proc/legacy/mod.ts>InputHandler

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
interface InputHandler
Re-export
import { type InputHandler } from "https://deno.land/x/proc@0.20.17/legacy/mod.ts";

The interface of an input handler.

Properties

processInput: (input: A, stdin: MultiCloseWriter) => Promise<void>

Called by the runner to process the input data.

Methods

getter
failOnEmptyInput(): boolean

A hack to detect when empty input is actually an error at runtime, since I can't get Typescript to figure it out at compile time.