Added prettier standard to support prettier and use it in combination with standard
[poolifier.git] / examples / dynamicExample.js
index 68c6b6f11f7d09536f754ca5c0ee7a4dedbd89c6..22379f204bf5a8a504920e06fea498e76f39f728 100644 (file)
@@ -1,7 +1,10 @@
 const DynamicThreadPool = require('../lib/dynamic')
 let resolved = 0
 let maxReached = 0
-const pool = new DynamicThreadPool(10, 20, './yourWorker.js', { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') })
+const pool = new DynamicThreadPool(10, 20, './yourWorker.js', {
+  errorHandler: e => console.error(e),
+  onlineHandler: () => console.log('worker is online')
+})
 pool.emitter.on('FullPool', () => maxReached++)
 
 const start = Date.now()