UNPKG

@mindfiredigital/pivothead

Version:

PivotHead is a powerful and flexible library for creating interactive pivot tables in JavaScript applications. It provides a core engine for data manipulation and, in the future, will be compatible with wrappers for React, Vue, Svelte, and Angular, making

42 lines 1 kB
/** * Worker Pool Manager * Manages a pool of Web Workers for parallel processing */ import type { ParseChunkMessage, ParseResultMessage } from '../types/interfaces'; export declare class WorkerPool { private workers; private taskQueue; private nextTaskId; private workerCount; private workerUrl; constructor(workerUrl: string, workerCount?: number); /** * Initialize worker pool */ private initializeWorkers; /** * Execute a task on an available worker */ execute(data: ParseChunkMessage): Promise<ParseResultMessage>; /** * Process the task queue */ private processQueue; /** * Terminate all workers */ terminate(): void; /** * Get number of active workers */ getWorkerCount(): number; /** * Get number of busy workers */ getBusyCount(): number; /** * Get number of queued tasks */ getQueuedCount(): number; } //# sourceMappingURL=WorkerPool.d.ts.map