build(deps-dev): bump rollup
[poolifier.git] / benchmarks / internal / thread-worker.mjs
index f88cf076268cbff5f600a44eebc9bad7c64b0687..7af5fa638aed36a25bba7c384d95c8b604eac5ba 100644 (file)
@@ -1,11 +1,11 @@
-import { isMainThread } from 'worker_threads'
+import { isMainThread } from 'node:worker_threads'
 import { ThreadWorker } from '../../lib/index.mjs'
 import { executeTaskFunction } from '../benchmarks-utils.mjs'
 import { TaskFunctions } from '../benchmarks-types.mjs'
 
 const debug = false
 
-const taskFunction = (data) => {
+const taskFunction = data => {
   data = data || {}
   data.function = data.function || TaskFunctions.jsonIntegerSerialization
   const res = executeTaskFunction(data)