build(deps): bump github/combine-prs from 5.0.0 to 5.1.0 (#2476)
[poolifier.git] / worker.js
... / ...
CommitLineData
1'use strict'
2const { ThreadWorker } = require('../../../lib/index')
3const { jsonIntegerSerialization } = require('../benchmark-utils')
4
5function yourFunction (data) {
6 jsonIntegerSerialization(1000)
7 // console.log('This is the main thread ' + isMainThread)
8 return { ok: 1 }
9}
10
11module.exports = new ThreadWorker(yourFunction)