@labset/task-pool-executor
Version:
task pool executor
15 lines (14 loc) • 602 B
TypeScript
import { SimpleTaskPoolExecutor } from './simple-task-pool-executor';
import { CliProgressRunContext, Runnable } from './types';
export declare class CliProgressTaskPoolExecutor<TOutput> extends SimpleTaskPoolExecutor<TOutput, CliProgressRunContext> {
private readonly poolProgress;
private readonly bars;
constructor(props: {
maxConcurrent: number;
clearOnComplete: boolean;
hideCursor: boolean;
});
_execute(taskId: string, runnable: Runnable<TOutput, CliProgressRunContext>): string;
_release(taskId: string): void;
close(): Promise<TOutput[]>;
}