+ elementsPerWorker: Configuration.getChargingStationsPerWorker(),
+ poolOptions: {
+ workerChoiceStrategy: Configuration.getWorkerPoolStrategy()
+ }
+ }, (msg: WorkerMessage) => {
+ if (msg.id === WorkerEvents.PERFORMANCE_STATISTICS) {
+ Bootstrap.storage.storePerformanceStatistics(msg.data);
+ }