1 |
|
2 | import { Command } from '../command';
|
3 | import { Logger } from '../logger';
|
4 | import { FlowController } from './flow-controller';
|
5 | export type ProcessCloseCondition = 'failure' | 'success';
|
6 |
|
7 |
|
8 |
|
9 | export declare class KillOthers implements FlowController {
|
10 | private readonly logger;
|
11 | private readonly abortController?;
|
12 | private readonly conditions;
|
13 | private readonly killSignal;
|
14 | constructor({ logger, abortController, conditions, killSignal, }: {
|
15 | logger: Logger;
|
16 | abortController?: AbortController;
|
17 | conditions: ProcessCloseCondition | ProcessCloseCondition[];
|
18 | killSignal: string | undefined;
|
19 | });
|
20 | handle(commands: Command[]): {
|
21 | commands: Command[];
|
22 | };
|
23 | }
|