X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=README.md;h=b907edf9bed8e0d0b89c8fe8524babcad1441b11;hb=1d25d3449f09e6059b73ab316c3e4ca9371dcc6a;hp=7e89e90fe2a76c461262796fc2345a5eec093f76;hpb=f42ca86f955658a30d3a90b18f82f911f2cb36f1;p=poolifier.git diff --git a/README.md b/README.md index 7e89e90f..b907edf9 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@

Weekly Downloads - - Actions Status + + Actions Status Quality Gate Status @@ -65,7 +65,7 @@ Please consult our general guidelines · Usage · - Node versions + Node versions · API · @@ -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)` @@ -242,7 +244,7 @@ But in general, **always profile your application** ## Contribute See guidelines [CONTRIBUTING](CONTRIBUTING.md) -Choose your task here [2.0.0](https://github.com/pioardi/poolifier/projects/1), propose an idea, a fix, an improvement. +Choose your task here [2.0.0](https://github.com/poolifier/poolifier/projects/1), propose an idea, a fix, an improvement. ## Team