private constructor() {
this.started = false;
this.workerScript = path.join(
- path.resolve(__dirname, '../'), // wouldn't path.resolve(./ChargingStationWorker.js) achieve the same result ?
+ path.resolve(__dirname, '../'),
'charging-station',
'ChargingStationWorker.js'
);
workerOptions?.messageHandler &&
// eslint-disable-next-line @typescript-eslint/no-misused-promises
(workerOptions.poolOptions.messageHandler = workerOptions.messageHandler);
- console.log('before');
let workerImplementation: WorkerAbstract<T> = null;
- console.log(workerImplementation);
switch (workerProcessType) {
case WorkerProcessType.WORKER_SET:
workerOptions.elementsPerWorker =