X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2FWorkerConstants.ts;h=72d436d439f444416524d4bc5245b26fb19ed01a;hb=aaf2bf9c2ec7712394d7ab9da12449262d894e60;hp=9a1caf8eae5cb69c9d4282ca4a9e1e9c54425c36;hpb=6f96009b3e4864dcd8771d84d9e826c90018e61c;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerConstants.ts b/src/worker/WorkerConstants.ts index 9a1caf8e..72d436d4 100644 --- a/src/worker/WorkerConstants.ts +++ b/src/worker/WorkerConstants.ts @@ -1,8 +1,16 @@ -export default class WorkerConstants { +export class WorkerConstants { + public static readonly EMPTY_FUNCTION = Object.freeze(() => { + /* This is intentional */ + }); + 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; + + private constructor() { + // This is intentional + } }