X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2FWorkerConstants.ts;h=635bfe529a82c79deba2ac60f6486a6c1672396b;hb=ee60150ff976ab3689fbef317ca0574459a0a819;hp=8e34a165c7fcb0eecb60856e86d487f1483fbe90;hpb=268a74bb051fcbbad532fd833f0d8fd2b33b6c64;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerConstants.ts b/src/worker/WorkerConstants.ts index 8e34a165..635bfe52 100644 --- a/src/worker/WorkerConstants.ts +++ b/src/worker/WorkerConstants.ts @@ -1,10 +1,14 @@ export class WorkerConstants { - static readonly DEFAULT_ELEMENT_START_DELAY = 0; - static readonly DEFAULT_WORKER_START_DELAY = 500; - static readonly POOL_MAX_INACTIVE_TIME = 60000; - static readonly DEFAULT_POOL_MIN_SIZE = 4; - static readonly DEFAULT_POOL_MAX_SIZE = 16; - static readonly DEFAULT_ELEMENTS_PER_WORKER = 1; + public static readonly EMPTY_FUNCTION = Object.freeze(() => { + /* This is intentional */ + }); + + public static readonly DEFAULT_ELEMENT_START_DELAY = 0; + public static readonly DEFAULT_WORKER_START_DELAY = 500; + public static readonly POOL_MAX_INACTIVE_TIME = 60000; + public static readonly DEFAULT_POOL_MIN_SIZE = 4; + public static readonly DEFAULT_POOL_MAX_SIZE = 16; + public static readonly DEFAULT_ELEMENTS_PER_WORKER = 1; private constructor() { // This is intentional