*/
export type PoolEvent = keyof typeof PoolEvents
+/**
+ * Worker tasks queue options.
+ */
+export interface TasksQueueOptions {
+ /**
+ * Maximum number of tasks that can be executed concurrently on a worker.
+ *
+ * @defaultValue 1
+ */
+ concurrency?: number
+}
+
/**
* Options for a poolifier pool.
*/
* @defaultValue false
*/
enableTasksQueue?: boolean
+ /**
+ * Pool worker tasks queue options.
+ *
+ * @experimental
+ * @defaultValue \{ concurrency: 1 \}
+ */
+ tasksQueueOptions?: TasksQueueOptions
}
/**