Improvements based on https://github.com/pioardi/poolifier/issues/6
[poolifier.git] / README.MD
index 5ab240770bf7e7c4c4728b2cac75a57aab82ace9..7b57162a1b29b28efb9951f54a950f4a80b38c70 100644 (file)
--- a/README.MD
+++ b/README.MD
@@ -49,15 +49,10 @@ function yourFunction (data) {
   return { ok: 1 }
 }
 
-class MyWorker extends ThreadWorker {
-  constructor () {
-    super(yourFunction, { maxInactiveTime: 1000 * 60})
-  }
-}
-module.exports = new MyWorker()
+module.exports = new ThreadWorker(yourFunction, { maxInactiveTime: 60000 })
 ```
 
-Instantiate your pool based on your needed : 
+Instantiate your pool based on your needed :
 
 ```js
 'use strict'