refactor(simulator): constify and factor out empty data structure
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerConstants.ts
index 8e34a165c7fcb0eecb60856e86d487f1483fbe90..12bb70accb53f170137313da6f1abc8d43cd8f68 100644 (file)
@@ -1,4 +1,9 @@
 export class WorkerConstants {
+  public static EMPTY_OBJECT = {};
+  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;