From: Jérôme Benoit Date: Sat, 15 Apr 2023 18:30:47 +0000 (+0200) Subject: docs: cleanup async usage in worker X-Git-Tag: v2.4.10~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=124119cf66af88a8583aef7ff2e41b855b0a8937;p=poolifier.git docs: cleanup async usage in worker Signed-off-by: Jérôme Benoit --- diff --git a/README.md b/README.md index 05865e2c..012acc86 100644 --- a/README.md +++ b/README.md @@ -104,8 +104,7 @@ function yourFunction(data) { } module.exports = new ThreadWorker(yourFunction, { - maxInactiveTime: 60000, - async: false + maxInactiveTime: 60000 }) ``` diff --git a/tests/worker-files/cluster/errorWorker.js b/tests/worker-files/cluster/errorWorker.js index d23ba27b..bea29f41 100644 --- a/tests/worker-files/cluster/errorWorker.js +++ b/tests/worker-files/cluster/errorWorker.js @@ -7,6 +7,5 @@ function error () { module.exports = new ClusterWorker(error, { maxInactiveTime: 500, - async: false, killBehavior: KillBehaviors.HARD }) diff --git a/tests/worker-files/thread/errorWorker.js b/tests/worker-files/thread/errorWorker.js index c33dc1f0..c4937c93 100644 --- a/tests/worker-files/thread/errorWorker.js +++ b/tests/worker-files/thread/errorWorker.js @@ -7,6 +7,5 @@ function error () { module.exports = new ThreadWorker(error, { maxInactiveTime: 500, - async: false, killBehavior: KillBehaviors.HARD })