## API Report File for "@rushstack/worker-pool"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

/// <reference types="node" />

import { Worker } from 'worker_threads';

// Warning: (ae-internal-missing-underscore) The name "IWorkerPoolOptions" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export interface IWorkerPoolOptions {
    id: string;
    maxWorkers: number;
    onWorkerDestroyed?: () => void;
    prepareWorker?: (worker: Worker) => void;
    workerData?: unknown;
    workerScriptPath: string;
}

// Warning: (ae-internal-missing-underscore) The name "WORKER_ID_SYMBOL" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export const WORKER_ID_SYMBOL: unique symbol;

// Warning: (ae-internal-missing-underscore) The name "WorkerPool" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export class WorkerPool {
    constructor(options: IWorkerPoolOptions);
    checkinWorker(worker: Worker): void;
    checkoutWorkerAsync(allowCreate: boolean): Promise<Worker>;
    finishAsync(): Promise<void>;
    getActiveCount(): number;
    getIdleCount(): number;
    getLiveCount(): number;
    // (undocumented)
    id: string;
    // (undocumented)
    maxWorkers: number;
    reset(): void;
}

```
