Added prettier standard to support prettier and use it in combination with standard
[poolifier.git] / examples / staticExample.js
index 49dc02a54533254efb32466e944228375fccc653..b9f7503fc8a4d656aa069f181c6ebdd679855d89 100644 (file)
@@ -1,8 +1,9 @@
 const FixedThreadPool = require('../lib/fixed')
 let resolved = 0
-const pool = new FixedThreadPool(15,
-  './yourWorker.js',
-  { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') })
+const pool = new FixedThreadPool(15, './yourWorker.js', {
+  errorHandler: e => console.error(e),
+  onlineHandler: () => console.log('worker is online')
+})
 
 const start = Date.now()
 const iterations = 1000