UNPKG

@labset/task-pool-executor

Version:
15 lines (14 loc) 602 B
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[]>; }