'warn',
{
skipWords: [
+ 'browserslist',
'christopher',
'comparator',
'cpu',
'fibonacci',
'inheritDoc',
'jsdoc',
+ 'num',
'os',
'poolifier',
'readonly',
'serializable',
'sinon',
'tsconfig',
+ 'typedoc',
'unregister',
'workerpool'
],
"Alessandro",
"Ardizio",
"Benoit",
+ "caffeinate",
"Dependabot",
"Gitter",
- "Shinigami",
"inheritDoc",
"lcov",
"loglevel",
"markdownlint",
+ "microjob",
+ "MYBENCH",
"piment",
"poolifier",
+ "poolify",
"prettierx",
"serializable",
+ "Shinigami",
"standardx",
+ "suchmokuo",
+ "threadjs",
+ "threadwork",
"workerpool"
],
"sonarlint.connectedMode.project": {
for (let i = 1; i <= tasks; i++) {
pool
.execute(workerData)
- .then(res => {
+ .then(() => {
executions++
if (executions === tasks) {
return resolve('FINISH')
case WorkerFunctions.jsonIntegerSerialization:
return jsonIntegerSerialization(data.n || 1000)
case WorkerFunctions.fibonacci:
- return fibonacci(data.n || 50)
+ return fibonacci(data.n || 1000)
case WorkerFunctions.factorial:
return factorial(data.n || 1000)
default:
'use strict'
const { ClusterWorker, KillBehaviors } = require('../../../lib/index')
-function test (data) {}
+function test () {}
module.exports = new ClusterWorker(test, {
maxInactiveTime: 500,
'use strict'
const { ClusterWorker, KillBehaviors } = require('../../../lib/index')
-function error (data) {
+function error () {
throw new Error('Error Message from ClusterWorker')
}
'use strict'
const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
-function test (data) {}
+function test () {}
module.exports = new ThreadWorker(test, {
maxInactiveTime: 500,
'use strict'
const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
-function error (data) {
+function error () {
throw new Error('Error Message from ThreadWorker')
}