From 3bcc0ba46fd5906aa3ac8a23eb91a0d57d349eb7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 27 Sep 2023 20:58:18 +0200 Subject: [PATCH] refactor: refine code examples MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- examples/javascript/multiFunctionWorker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/javascript/multiFunctionWorker.js b/examples/javascript/multiFunctionWorker.js index 20c416951..f21f8b48b 100644 --- a/examples/javascript/multiFunctionWorker.js +++ b/examples/javascript/multiFunctionWorker.js @@ -3,12 +3,12 @@ const { ThreadWorker } = require('poolifier') function fn0 (data) { console.info('Executing function 0') - return { data: `fn0 your input text was ${data.text}` } + return { data: `fn0 your input text was '${data.text}'` } } function fn1 (data) { console.info('Executing function 1') - return { data: `fn1 your input text was ${data.text}` } + return { data: `fn1 your input text was '${data.text}'` } } module.exports = new ThreadWorker({ fn0, fn1 }) -- 2.43.0