repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix(CONTRIBUTING.md): moved to root dir
[poolifier.git]
/
README.MD
diff --git
a/README.MD
b/README.MD
index 249d770277c49a8a5f7e64e2b36d16cff988dbc8..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
@pioardi/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('
@pioardi/node-thread-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('
@pioardi/node-thread-pool
')
+const { FixedThreadPool, DynamicThreadPool } = require('
poolifier
')
// a fixed thread pool
const pool = new FixedThreadPool(15,
// a fixed thread pool
const pool = new FixedThreadPool(15,