X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fworker%2FWorkerSet.ts;h=c82e79fcfb81a41f795b34617f7b0cb5658072b4;hb=59395dc149654128f2996f4999bccb66270f54e4;hp=e69e9285fbdf4b28f645e3cf34dc9baabb35d23e;hpb=0e4fa348298d36900560f7466f21f44090d2fe1b;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerSet.ts b/src/worker/WorkerSet.ts index e69e9285..c82e79fc 100644 --- a/src/worker/WorkerSet.ts +++ b/src/worker/WorkerSet.ts @@ -1,7 +1,9 @@ -// Partial Copyright Jerome Benoit. 2021. All Rights Reserved. +// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved. import { Worker } from 'worker_threads'; +import WorkerAbstract from './WorkerAbstract'; +import { WorkerUtils } from './WorkerUtils'; import { type MessageHandler, type WorkerData, @@ -10,8 +12,6 @@ import { type WorkerSetElement, } from '../types/Worker'; import Utils from '../utils/Utils'; -import WorkerAbstract from './WorkerAbstract'; -import { WorkerUtils } from './WorkerUtils'; export default class WorkerSet extends WorkerAbstract { private readonly workerSet: Set; @@ -84,8 +84,7 @@ export default class WorkerSet extends WorkerAbstract { } /** - * - * @private + * Start a new `Worker`. */ private async startWorker(): Promise { const worker = new Worker(this.workerScript);