.eslintrc.js: remove uneeded rules for tests
[poolifier.git] / README.md
index 2db54d26d4742ea0e687fad888e3972ccd49f8c7..9c67d340c2dca6f057a3ce7c31b00d1f44630609 100644 (file)
--- a/README.md
+++ b/README.md
@@ -99,7 +99,7 @@ You can implement a worker-threads worker in a simple way by extending the class
 'use strict'
 const { ThreadWorker } = require('poolifier')
 
-function yourFunction(data) {
+function yourFunction (data) {
   // this will be executed in the worker thread,
   // the data will be received by using the execute method
   return { ok: 1 }
@@ -163,6 +163,8 @@ You can use node versions >= 12.x for thread pool, and node versions >= 16.x for
 
   - `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.WEIGHTED_ROUND_ROBIN` Submit tasks to worker using a weighted round robin scheduling algorithm based on tasks execution time for now
+  - `WorkerChoiceStrategies.FAIR_SHARE`: Submit tasks to worker using a fair share tasks scheduling algorithm
 
   Default: `WorkerChoiceStrategies.ROUND_ROBIN`