From 124119cf66af88a8583aef7ff2e41b855b0a8937 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 15 Apr 2023 20:30:47 +0200 Subject: [PATCH] docs: cleanup async usage in worker MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- README.md | 3 +-- tests/worker-files/cluster/errorWorker.js | 1 - tests/worker-files/thread/errorWorker.js | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) 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 }) -- 2.34.1