repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: update changelog entries
[poolifier.git]
/
examples
/
multifunctionWorker.js
diff --git
a/examples/multifunctionWorker.js
b/examples/multifunctionWorker.js
index 8a1809ac7c25e81e3e9f697ce98a0b5748bd9c6f..61369cfa57171d2cc26c5028cd170e4cd51cf9c7 100644
(file)
--- a/
examples/multifunctionWorker.js
+++ b/
examples/multifunctionWorker.js
@@
-2,10
+2,10
@@
const { ThreadWorker } = require('poolifier')
function yourFunction (data) {
const { ThreadWorker } = require('poolifier')
function yourFunction (data) {
- if (data.f
n
ame === 'fn0') {
+ if (data.f
unctionN
ame === 'fn0') {
console.log('Executing function 0')
return { data: '0 your input was' + data.input }
console.log('Executing function 0')
return { data: '0 your input was' + data.input }
- } else if (data.f
n
ame === 'fn1') {
+ } else if (data.f
unctionN
ame === 'fn1') {
console.log('Executing function 1')
return { data: '1 your input was' + data.input }
}
console.log('Executing function 1')
return { data: '1 your input was' + data.input }
}