web-csv-toolbox
    Preparing search index...

    Interface WorkerPool

    Common interface for worker pools. Both ReusableWorkerPool and TransientWorkerPool implement this interface.

    This interface defines the contract for worker pool implementations. Users typically use ReusableWorkerPool for persistent worker pools, while the internal default pool uses TransientWorkerPool for automatic cleanup.

    interface WorkerPool {
        size: number;
        "[dispose]"(): void;
        getNextRequestId(): number;
        getWorker(workerURL?: string | URL): Promise<Worker>;
        isFull(): boolean;
        releaseWorker(worker: Worker): void;
        terminate(): void;
    }

    Implemented by

    Index

    Properties

    size: number

    Get the current number of workers in the pool.

    The number of active workers

    Methods