import { SlicerFn, OpConfig, SlicerRecoveryData } from '../interfaces/index.js'; import SlicerCore from './core/slicer-core.js'; /** * A varient of a "Slicer" for running a parallel stream of slicers. * * See [[SlicerCore]] for more informartion */ export default abstract class ParallelSlicer extends SlicerCore { protected _slicers: SlicerObj[]; /** * Register the different Slicer instances * * See [[SlicerCore#initialize]] */ initialize(recoveryData: SlicerRecoveryData[]): Promise; /** * Cleanup the slicers functions * * See [[SlicerCore#shutdown]] */ shutdown(): Promise; /** * Called by {@link ParallelSlicer#handle} for every count of `slicers` in the ExecutionConfig * @returns a function which will be called in parallel */ abstract newSlicer(id: number): Promise; slicers(): number; handle(): Promise; get isFinished(): boolean; private processSlicer; } interface SlicerObj { done: boolean; fn: SlicerFn; id: number; processing: boolean; order: number; } export {}; //# sourceMappingURL=parallel-slicer.d.ts.map