feat: add option to enable worker tasks queue
[poolifier.git] / src / pools / pool.ts
index f1da5356a2e5310d799b6e595a898a3aad783600..9d18ed70c7cd0d8204c510cfb52f5a774fe831be 100644 (file)
@@ -4,7 +4,7 @@ import type {
   ExitHandler,
   MessageHandler,
   OnlineHandler
-} from './pool-worker'
+} from './worker'
 import type { WorkerChoiceStrategy } from './selection-strategies/selection-strategies-types'
 
 /**
@@ -55,6 +55,13 @@ export interface PoolOptions<Worker> {
    * @defaultValue true
    */
   enableEvents?: boolean
+  /**
+   * Pool worker tasks queue.
+   *
+   * @experimental
+   * @defaultValue false
+   */
+  enableTasksQueue?: boolean
 }
 
 /**