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
Fix workerSet process mode.
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
Worker.ts
diff --git
a/src/types/Worker.ts
b/src/types/Worker.ts
index 20c4488224f620f68e415426384446fb1239a7ed..bc2972684c0cb2677f34176ffbd11b119392d423 100644
(file)
--- a/
src/types/Worker.ts
+++ b/
src/types/Worker.ts
@@
-6,8
+6,15
@@
export enum WorkerProcessType {
STATIC_POOL = 'staticPool'
}
STATIC_POOL = 'staticPool'
}
-// FIXME: make it more generic
-export interface WorkerData {
+export interface WorkerOptions {
+ poolMaxSize?: number;
+ poolMinSize?: number;
+ elementsPerWorker?: number;
+}
+
+export interface WorkerData { }
+
+export interface StationWorkerData extends WorkerData {
index: number;
templateFile: string;
}
index: number;
templateFile: string;
}