X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2FmultiFunctionExample.js;h=213736ea037899024da9e9aab20213ebf518de40;hb=refs%2Ftags%2Fv2.5.4;hp=31fd8809613f7e2b86783a53bb16e9972128743c;hpb=979e2251853435eb4c98d9452bbf787a16aa0266;p=poolifier.git diff --git a/examples/multiFunctionExample.js b/examples/multiFunctionExample.js index 31fd8809..213736ea 100644 --- a/examples/multiFunctionExample.js +++ b/examples/multiFunctionExample.js @@ -5,11 +5,11 @@ const pool = new FixedThreadPool(15, './multiFunctionWorker.js', { }) pool - .execute({ functionName: 'fn0', input: 'hello' }) + .execute({ text: 'hello' }, 'fn0') .then(res => console.log(res)) .catch(err => console.error(err)) pool - .execute({ functionName: 'fn1', input: 'multiple functions' }) + .execute({ text: 'multiple functions' }, 'fn1') .then(res => console.log(res)) .catch(err => console.error(err))