fix: propagate async/await properly in benchmarking code
[poolifier.git] / benchmarks / versus-external-pools / workers / workerpool / function-to-bench-worker.mjs
index a1b8d2618b6ce0e11b7f5e066623189e64909a35..35b2aeb8e9110ffd18b2d6fd7486293259fddb25 100644 (file)
@@ -1,8 +1,8 @@
 import workerpool from 'workerpool'
 import functionToBench from '../../functions/function-to-bench.mjs'
 
-function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
-  return functionToBench({
+async function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
+  return await functionToBench({
     test: testName,
     taskType,
     taskSize