Merge branch 'master' of github.com:jerome-benoit/poolifier
[poolifier.git] / src / pools / pool.ts
index 87f4a8fa03f781aab2a17926fd98ab088387bf1b..22757f9a54a841597d0394c51675efa25ac08a5d 100644 (file)
@@ -68,12 +68,13 @@ export type PoolEvent = keyof typeof PoolEvents
  * Pool information.
  */
 export interface PoolInfo {
+  version: string
   type: PoolType
   worker: WorkerType
   minSize: number
   maxSize: number
   /** Pool utilization ratio. */
-  utilization: number
+  utilization?: number
   /** Pool total worker nodes */
   workerNodes: number
   /** Pool idle worker nodes */
@@ -96,7 +97,7 @@ export interface TasksQueueOptions {
    *
    * @defaultValue 1
    */
-  concurrency?: number
+  readonly concurrency?: number
 }
 
 /**