X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=README.md;h=9b1f81317b5a28e920789a096be724b14459f793;hb=42db2d3372ac49ab00dd1889378238b7a78ac4ce;hp=da1690207e21ce6cea04dbe87f3768f3641132d6;hpb=da3098610d6cf6155bbbe53c84b6ac6ccd400ff5;p=poolifier.git diff --git a/README.md b/README.md index da169020..9b1f8131 100644 --- a/README.md +++ b/README.md @@ -178,11 +178,19 @@ Node versions >= 16.x are supported. Properties: - `medRunTime` (optional) - Use the tasks median run time instead of the tasks average run time in worker choice strategies. - Default: { medRunTime: false } + + Default: { medRunTime: false } - `enableEvents` (optional) - Events emission enablement in this pool. Default: true - `enableTasksQueue` (optional, experimental) - Tasks queue per worker enablement in this pool. Default: false +- `tasksQueueOptions` (optional, experimental) - The worker tasks queue options object to use in this pool. + Properties: + + - `concurrency` (optional) - The maximum number of tasks that can be executed concurrently on a worker. + + Default: { concurrency: 1 } + ### `pool = new DynamicThreadPool/DynamicClusterPool(min, max, filePath, opts)` `min` (mandatory) Same as FixedThreadPool/FixedClusterPool numberOfThreads/numberOfWorkers, this number of workers will be always active