repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(ci): silence linter
[poolifier.git]
/
examples
/
javascript
/
multiFunctionWorker.cjs
diff --git
a/examples/javascript/multiFunctionWorker.cjs
b/examples/javascript/multiFunctionWorker.cjs
index da8f972ffa7d3cf68f4e7d059b7356a69080b90e..d49962d621db95e015d72a7472a6b87c9b2ea159 100644
(file)
--- a/
examples/javascript/multiFunctionWorker.cjs
+++ b/
examples/javascript/multiFunctionWorker.cjs
@@
-1,11
+1,19
@@
'use strict'
const { ThreadWorker } = require('poolifier')
'use strict'
const { ThreadWorker } = require('poolifier')
+/**
+ *
+ * @param data
+ */
function fn0 (data) {
console.info('Executing fn0')
return { data: `fn0 input text was '${data.text}'` }
}
function fn0 (data) {
console.info('Executing fn0')
return { data: `fn0 input text was '${data.text}'` }
}
+/**
+ *
+ * @param data
+ */
function fn1 (data) {
console.info('Executing fn1')
return { data: `fn1 input text was '${data.text}'` }
function fn1 (data) {
console.info('Executing fn1')
return { data: `fn1 input text was '${data.text}'` }