From: Jérôme Benoit Date: Wed, 27 Sep 2023 18:58:18 +0000 (+0200) Subject: refactor: refine code examples X-Git-Tag: v2.7.5~30 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3bcc0ba46fd5906aa3ac8a23eb91a0d57d349eb7;p=poolifier.git refactor: refine code examples Signed-off-by: Jérôme Benoit --- diff --git a/examples/javascript/multiFunctionWorker.js b/examples/javascript/multiFunctionWorker.js index 20c41695..f21f8b48 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 })