X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=README.md;h=f2ed11524a5a14ebfeb26e50e6c8672f913dae22;hb=59497fa9684605a29f8d0757d36825c26f2d2bec;hp=7e89e90fe2a76c461262796fc2345a5eec093f76;hpb=f42ca86f955658a30d3a90b18f82f911f2cb36f1;p=poolifier.git diff --git a/README.md b/README.md index 7e89e90f..f2ed1152 100644 --- a/README.md +++ b/README.md @@ -160,10 +160,12 @@ You can use node versions 12.x, 13.x, 14.x, 16.x - `onlineHandler` (optional) - A function that will listen for online event on each worker - `exitHandler` (optional) - A function that will listen for exit event on each worker - `workerChoiceStrategy` (optional) - The work choice strategy to use in this pool: + - `WorkerChoiceStrategies.ROUND_ROBIN`: Submit tasks to worker in this pool in a round robbin fashion - - `WorkerChoiceStrategies.LESS_RECENTLY_USED`: Submit tasks to the less recently used worker in the pool - + - `WorkerChoiceStrategies.LESS_RECENTLY_USED`: Submit tasks to the less recently used worker in the pool + Default: `WorkerChoiceStrategies.ROUND_ROBIN` + - `enableEvents` (optional) - Events emission enablement in this pool. Default: true ### `pool = new DynamicThreadPool/DynamicClusterPool(min, max, filePath, opts)`