Bump eslint-plugin-jsdoc from 32.1.0 to 32.1.1 (#223)
[poolifier.git] / src / pools / pool-internal.ts
index ddee27eac0ed21bf43ca4f61b8378ee3a3146b6a..d641fcf9d9fec246ee26a92a67a78d348b3dacf3 100644 (file)
@@ -42,17 +42,17 @@ export interface IPoolInternal<
    */
   readonly emitter: PoolEmitter
 
-  /**
-   * Maximum number of workers that can be created by this pool.
-   */
-  readonly max?: number
-
   /**
    * Whether the pool is dynamic or not.
    *
    * If it is dynamic, it provides the `max` property.
    */
-  isDynamic(): boolean
+  readonly dynamic: boolean
+
+  /**
+   * Maximum number of workers that can be created by this pool.
+   */
+  readonly max?: number
 
   /**
    * Creates a new worker for this pool and sets it up completely.