import type { ListenOptions } from 'node:net';
+import type { ResourceLimits } from 'node:worker_threads';
import type { WorkerChoiceStrategy } from 'poolifier';
uri?: string;
}
+export type ElementsPerWorkerType = number | 'auto' | 'all';
+
export interface WorkerConfiguration {
processType?: WorkerProcessType;
startDelay?: number;
- elementsPerWorker?: number | 'auto';
+ elementsPerWorker?: ElementsPerWorkerType;
elementStartDelay?: number;
poolMinSize?: number;
poolMaxSize?: number;
- /** @deprecated Not publicly exposed to end users. */
- poolStrategy?: WorkerChoiceStrategy;
+ resourceLimits?: ResourceLimits;
}
export interface ConfigurationData {