docs: cleanup async usage in worker
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 15 Apr 2023 18:30:47 +0000 (20:30 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 15 Apr 2023 18:30:47 +0000 (20:30 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
README.md
tests/worker-files/cluster/errorWorker.js
tests/worker-files/thread/errorWorker.js

index 05865e2cfcecfddae76d46a05eb89a4b139ba2f4..012acc86088ee1f6ff8b2ff362236c82765719a5 100644 (file)
--- a/README.md
+++ b/README.md
@@ -104,8 +104,7 @@ function yourFunction(data) {
 }
 
 module.exports = new ThreadWorker(yourFunction, {
-  maxInactiveTime: 60000,
-  async: false
+  maxInactiveTime: 60000
 })
 ```
 
index d23ba27b31692d74866fdd2ddb2f9caf8763fac7..bea29f4192eed2fb72f346b388dd61566df71ada 100644 (file)
@@ -7,6 +7,5 @@ function error () {
 
 module.exports = new ClusterWorker(error, {
   maxInactiveTime: 500,
-  async: false,
   killBehavior: KillBehaviors.HARD
 })
index c33dc1f0eb5e7c454a8ae355fe0c997761c32c56..c4937c93ce9f1b45603bd0cfbef82d605602b3c3 100644 (file)
@@ -7,6 +7,5 @@ function error () {
 
 module.exports = new ThreadWorker(error, {
   maxInactiveTime: 500,
-  async: false,
   killBehavior: KillBehaviors.HARD
 })