X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2FmultifunctionWorker.js;h=53217fa04957821ec4def7bca47b4334e21bf4d0;hb=e460940e8d2a41a846b2334d54410807ffc2f421;hp=a38d8bb0872e82658abac89a01408d37f6983960;hpb=9f8f5811bfbaae8f44976880045faef15bd0387f;p=poolifier.git diff --git a/examples/multifunctionWorker.js b/examples/multifunctionWorker.js index a38d8bb0..53217fa0 100644 --- a/examples/multifunctionWorker.js +++ b/examples/multifunctionWorker.js @@ -3,12 +3,12 @@ const { ThreadWorker } = require('poolifier') function fn0 (data) { console.log('Executing function 0') - return { data: 'fn0 your input was' + data.text } + return { data: 'fn0 your input text was' + data.text } } function fn1 (data) { console.log('Executing function 1') - return { data: 'fn1 your input was' + data.text } + return { data: 'fn1 your input text was' + data.text } } module.exports = new ThreadWorker({ fn0, fn1 })