UNPKG

parallel-es

Version:
19 lines (18 loc) 744 B
import { IParallelGenerator } from "./parallel-generator"; import { FunctionCallSerializer } from "../../function/function-call-serializer"; import { ISerializedFunctionCall } from "../../function/serialized-function-call"; /** * Generator for arrays. * Splits the array elements onto separate tasks. * @param T type of the array elements */ export declare class ParallelCollectionGenerator<T> implements IParallelGenerator { collection: T[]; /** * Creates a new instance over the given collection * @param collection */ constructor(collection: T[]); readonly length: number; serializeSlice(index: number, numberOfItems: number, functionCallSerializer: FunctionCallSerializer): ISerializedFunctionCall; }