-import type EventEmitterAsyncResource from 'node:events';
-
-import { DynamicThreadPool, type PoolInfo } from 'poolifier';
+import { DynamicThreadPool, type PoolEmitter, type PoolInfo } from 'poolifier';
import { WorkerAbstract } from './WorkerAbstract';
import type { WorkerData, WorkerOptions } from './WorkerTypes';
this.workerOptions.poolMinSize,
this.workerOptions.poolMaxSize,
this.workerScript,
- this.workerOptions.poolOptions
+ this.workerOptions.poolOptions,
);
}
return undefined;
}
- get emitter(): EventEmitterAsyncResource | undefined {
+ get emitter(): PoolEmitter | undefined {
return this.pool?.emitter;
}