Files
glastree/node_modules/concurrently/dist/src/flow-control/output-error-handler.d.ts
T

19 lines
606 B
TypeScript
Raw Normal View History

import { Writable } from 'stream';
import { Command } from '../command';
import { FlowController } from './flow-controller';
/**
* Kills processes and aborts further command spawning on output stream error (namely, SIGPIPE).
*/
export declare class OutputErrorHandler implements FlowController {
private readonly outputStream;
private readonly abortController;
constructor({ abortController, outputStream, }: {
abortController: AbortController;
outputStream: Writable;
});
handle(commands: Command[]): {
commands: Command[];
onFinish(): void;
};
}