repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git]
/
src
/
worker
/
WorkerStaticPool.ts
diff --git
a/src/worker/WorkerStaticPool.ts
b/src/worker/WorkerStaticPool.ts
index e49ac2613e97e0da7dc7857b7ec2a4b3cf3f2fd1..7000ac9a45e7f0ea8d5de89a9ba3496782c59b63 100644
(file)
--- a/
src/worker/WorkerStaticPool.ts
+++ b/
src/worker/WorkerStaticPool.ts
@@
-1,6
+1,4
@@
-import type EventEmitterAsyncResource from 'node:events';
-
-import { FixedThreadPool, type PoolInfo } from 'poolifier';
+import { FixedThreadPool, type PoolEmitter, type PoolInfo } from 'poolifier';
import { WorkerAbstract } from './WorkerAbstract';
import type { WorkerData, WorkerOptions } from './WorkerTypes';
import { WorkerAbstract } from './WorkerAbstract';
import type { WorkerData, WorkerOptions } from './WorkerTypes';
@@
-20,7
+18,7
@@
export class WorkerStaticPool extends WorkerAbstract<WorkerData> {
this.pool = new FixedThreadPool(
this.workerOptions.poolMaxSize,
this.workerScript,
this.pool = new FixedThreadPool(
this.workerOptions.poolMaxSize,
this.workerScript,
- this.workerOptions.poolOptions
+ this.workerOptions.poolOptions
,
);
}
);
}
@@
-36,7
+34,7
@@
export class WorkerStaticPool extends WorkerAbstract<WorkerData> {
return undefined;
}
return undefined;
}
- get emitter():
EventEmitterAsyncResource
| undefined {
+ get emitter():
PoolEmitter
| undefined {
return this.pool?.emitter;
}
return this.pool?.emitter;
}