repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5648b9c
)
Update README.MD
author
Alessandro Pio Ardizio
<alessandroardizio94@gmail.com>
Wed, 22 Jan 2020 22:45:28 +0000
(23:45 +0100)
committer
GitHub
<noreply@github.com>
Wed, 22 Jan 2020 22:45:28 +0000
(23:45 +0100)
README.MD
patch
|
blob
|
blame
|
history
diff --git
a/README.MD
b/README.MD
index 249d770277c49a8a5f7e64e2b36d16cff988dbc8..42ffe53745a23b65d95719d9749c0058f2c7ee38 100644
(file)
--- a/
README.MD
+++ b/
README.MD
@@
-41,7
+41,7
@@
You can implement a worker in a simple way , extending the class ThreadWorker :
```js
'use strict'
-const { ThreadWorker } = require('
@pioardi/node-thread-pool
')
+const { ThreadWorker } = require('
poolifier
')
function yourFunction (data) {
// this will be executed in the worker thread,
@@
-61,7
+61,7
@@
Instantiate your pool based on your needed :
```js
'use strict'
-const { FixedThreadPool, DynamicThreadPool } = require('
@pioardi/node-thread-pool
')
+const { FixedThreadPool, DynamicThreadPool } = require('
poolifier
')
// a fixed thread pool
const pool = new FixedThreadPool(15,