repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of github.com:poolifier/poolifier
[poolifier.git]
/
examples
/
yourWorker.js
diff --git
a/examples/yourWorker.js
b/examples/yourWorker.js
index 3e59f3465db2269fbb4ed2827f3c048c6010a8b8..5bd1ad6569c212b560d3eb829352f8974417b4a3 100644
(file)
--- a/
examples/yourWorker.js
+++ b/
examples/yourWorker.js
@@
-4,7
+4,7
@@
const { isMainThread } = require('worker_threads')
const debug = false
-function yourFunction (
data
) {
+function yourFunction () {
for (let i = 0; i <= 1000; i++) {
const o = {
a: i