perf: remove unneeded class indirection for dynamic pool in worker
[poolifier.git] / examples / multiFunctionExample.js
index 6edc2bb7aaaa80b2d7ade610a09860785919d62d..31fd8809613f7e2b86783a53bb16e9972128743c 100644 (file)
@@ -13,4 +13,4 @@ pool
   .then(res => console.log(res))
   .catch(err => console.error(err))
 
-setTimeout(pool.destroy(pool), 3000)
+setTimeout(pool.destroy(), 3000)