repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps): bump poolifier
[poolifier.git]
/
examples
/
javascript
/
yourWorker.cjs
diff --git
a/examples/javascript/yourWorker.cjs
b/examples/javascript/yourWorker.cjs
index 073253ea2300d9d7277cec9c77b34a8a8d1a1e40..7eb163d7c572785890dceb7b397a923cce0b0bb1 100644
(file)
--- a/
examples/javascript/yourWorker.cjs
+++ b/
examples/javascript/yourWorker.cjs
@@
-1,10
+1,13
@@
'use strict'
const { ThreadWorker } = require('poolifier')
'use strict'
const { ThreadWorker } = require('poolifier')
+/**
+ * @returns
+ */
function yourFunction () {
for (let i = 0; i <= 1000; i++) {
const o = {
function yourFunction () {
for (let i = 0; i <= 1000; i++) {
const o = {
- a: i
+ a: i
,
}
JSON.stringify(o)
}
}
JSON.stringify(o)
}