repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: add engines to the package.json
[poolifier.git]
/
README.MD
diff --git
a/README.MD
b/README.MD
index 283520afd69a5a4dfb7debad33c95a647be8a2f5..e77bc1cdf514678d63c24589287aaa969dd48bd7 100644
(file)
--- a/
README.MD
+++ b/
README.MD
@@
-33,7
+33,7
@@
You have to implement your worker extending the ThreadWorker class<br>
<h2 id="installation">Installation</h2>
```
<h2 id="installation">Installation</h2>
```
-npm install
node-thread-pool
--save
+npm install
poolifier
--save
```
<h2 id="usage">Usage</h2>
```
<h2 id="usage">Usage</h2>
@@
-41,7
+41,7
@@
You can implement a worker in a simple way , extending the class ThreadWorker :
```js
'use strict'
```js
'use strict'
-const { ThreadWorker } = require('
node-pool
')
+const { ThreadWorker } = require('
poolifier
')
function yourFunction (data) {
// this will be executed in the worker thread,
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'
```js
'use strict'
-const { FixedThreadPool, DynamicThreadPool } = require('
node-pool
')
+const { FixedThreadPool, DynamicThreadPool } = require('
poolifier
')
// a fixed thread pool
const pool = new FixedThreadPool(15,
// a fixed thread pool
const pool = new FixedThreadPool(15,