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

x/proc/legacy/runners/handlers/string-asynciterable-handlers.ts>StringAsyncIterableOutputHandler

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
class StringAsyncIterableOutputHandler
extends AbstractTextOutputHandler<AsyncIterable<string>>
import { StringAsyncIterableOutputHandler } from "https://deno.land/x/proc@0.20.5/legacy/runners/handlers/string-asynciterable-handlers.ts";

Return stdout as an iterable over the lines.

Constructors

new
StringAsyncIterableOutputHandler(processStderr: StderrProcessor, errorHandler: ErrorHandler)

Methods

processOutput(
stdout: MultiCloseReader,
stderr: MultiCloseReader,
process: MultiCloseProcess,
input: { stdin: MultiCloseWriter; handlerResult: Promise<null | Error>; },
): AsyncIterableIterator<string>