refactor: limit pool internals public exposure
[poolifier.git] / src / pools / abstract-pool.ts
index 538d66c797fabc98e93a130953fdde2ee9edfdc8..5d7e8cd82286749884ebdb726684e444bbd1c395 100644 (file)
@@ -78,9 +78,9 @@ export abstract class AbstractPool<
    * @param opts - Options for the pool.
    */
   public constructor (
-    public readonly numberOfWorkers: number,
-    public readonly filePath: string,
-    public readonly opts: PoolOptions<Worker>
+    protected readonly numberOfWorkers: number,
+    protected readonly filePath: string,
+    protected readonly opts: PoolOptions<Worker>
   ) {
     if (!this.isMain()) {
       throw new Error('Cannot start a pool from a worker!')