| 1 | export class WorkerConstants { |
| 2 | public static readonly EMPTY_FUNCTION = Object.freeze(() => { |
| 3 | /* This is intentional */ |
| 4 | }); |
| 5 | |
| 6 | public static readonly DEFAULT_ELEMENT_START_DELAY = 0; |
| 7 | public static readonly DEFAULT_WORKER_START_DELAY = 500; |
| 8 | public static readonly POOL_MAX_INACTIVE_TIME = 60000; |
| 9 | public static readonly DEFAULT_POOL_MIN_SIZE = 4; |
| 10 | public static readonly DEFAULT_POOL_MAX_SIZE = 16; |
| 11 | public static readonly DEFAULT_ELEMENTS_PER_WORKER = 1; |
| 12 | |
| 13 | private constructor() { |
| 14 | // This is intentional |
| 15 | } |
| 16 | } |