parallel-es
Version:
Simple parallelization for EcmaScript
13 lines (12 loc) • 724 B
TypeScript
import { IDefaultInitializedParallelOptions } from "../parallel-options";
import { AbstractParallelScheduler, IParallelTaskScheduling } from "./abstract-parallel-scheduler";
/**
* Default implementation of a parallel scheduler.
* By default, creates 4 times as many tasks as the hardware concurrency allows ({@link IParallelOptions.maxConcurrencyLevel}).
*
* If the options define {@link IParallelOptions.maxValuesPerTask} or {@link IParallelOptions.minValuesPerTask}, then the
* values are adjusted accordingly.
*/
export declare class DefaultParallelScheduler extends AbstractParallelScheduler {
getScheduling(totalNumberOfValues: number, options: IDefaultInitializedParallelOptions): IParallelTaskScheduling;
}