perf: bind to this some methods in the tasks execution code path
[poolifier.git] / examples / multiFunctionExample.js
index 93d4e78b3d0465b35b823fd18dc2cbc203c66e31..6edc2bb7aaaa80b2d7ade610a09860785919d62d 100644 (file)
@@ -13,4 +13,4 @@ pool
   .then(res => console.log(res))
   .catch(err => console.error(err))
 
-setTimeout(pool.destroy.bind(pool), 3000)
+setTimeout(pool.destroy(pool), 3000)