Benchmark: remove unneeded then at promise handling (#136)
[poolifier.git] / benchmarks / myBench.js
index 24ccba53aee46614ed6128efe74b8637f9e010af..a69de002aab4c6840e03601b34546e3b54c29056 100644 (file)
@@ -110,10 +110,6 @@ async function workerpoolTest () {
       .exec('yourFunction', [workerData])
       .then(res => {
         executions++
-        return null
-      })
-      .catch(err => console.error(err))
-      .then(res => {
         if (tasks === executions) {
           return console.log(
             `workerpool take ${