Skip to main content
Module

x/proc/mod3.ts>StderrHandler

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
type alias StderrHandler
import { type StderrHandler } from "https://deno.land/x/proc@0.20.16/mod3.ts";

Optionally handle lines of stderr (passed as text lines), and also optionally return a value that is passed to your custom ErrorHandler. You are not allowed to throw an error from this function. If you wish to throw an error based on stderr data, the ErrorHandler function is where you do that.

definition: (it: AsyncIterable<string>) => Promise<S>