Authorize Request added
[e-mobility-charging-stations-simulator.git] / src / charging-station / StationWorker.ts
CommitLineData
6af9012e 1import { isMainThread, workerData } from 'worker_threads';
3f40bc9c 2
6af9012e 3import ChargingStation from './ChargingStation';
7dde0b73
JB
4
5if (!isMainThread) {
ad3de6c4 6 const station = new ChargingStation(workerData.index as number, workerData.templateFile as string);
7dde0b73
JB
7 station.start();
8}