Files
book-test/node_modules/concurrently/dist/lib/flow-control/kill-others.d.ts
T
chris a7524412f0
CI/CD Pipeline / test (push) Failing after 2m38s
CI/CD Pipeline / deploy-internal (push) Has been skipped
Add web front-end and fix API issues
2026-08-28 21:47:05 -04:00

26 lines
925 B
TypeScript

import { Command } from '../command.js';
import { Logger } from '../logger.js';
import { FlowController } from './flow-controller.js';
export type ProcessCloseCondition = 'failure' | 'success';
/**
* Sends a SIGTERM signal to all commands when one of the commands exits with a matching condition.
*/
export declare class KillOthers implements FlowController {
private readonly logger;
private readonly abortController?;
private readonly conditions;
private readonly killSignal;
private readonly timeoutMs?;
constructor({ logger, abortController, conditions, killSignal, timeoutMs, }: {
logger: Logger;
abortController?: AbortController;
conditions: ProcessCloseCondition | ProcessCloseCondition[];
killSignal: string | undefined;
timeoutMs?: number;
});
handle(commands: Command[]): {
commands: Command[];
};
private maybeForceKill;
}