docs: refine benchmark README.md
[poolifier.git] / benchmarks / internal / bench.mjs
index 1b71538d22f3c39c32084db02908868729c810c8..891ff9eca7118d5bb530e43d23315dcbdfa7c59f 100644 (file)
@@ -58,10 +58,10 @@ poolifierSuite
   .on('cycle', event => {
     console.info(event.target.toString())
   })
-  .on('complete', function () {
+  .on('complete', async function () {
     console.info(
       'Fastest is ' + LIST_FORMATTER.format(this.filter('fastest').map('name'))
     )
-    fixedThreadPool.destroy()
+    await fixedThreadPool.destroy()
   })
   .run({ async: true })