X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=README.md;h=8f343c399943a803e60fc5c64a26002dfa8a81fd;hb=b0d64659cb7c0b31a89dbed60bd80dce6bd7547b;hp=ab7844a2bc0da88a0bfdf8c3282090bff14ce2d3;hpb=e36cfb1358100da513cae995df83e7ebda6f8cfb;p=poolifier.git diff --git a/README.md b/README.md index ab7844a2..8f343c39 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
- +

Node Thread Pool and Cluster Pool :arrow_double_up: :on:

@@ -127,7 +127,7 @@ const pool = new DynamicThreadPool(10, 100, './yourWorker.js', { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') }) -pool.emitter.on('FullPool', () => console.log('Pool is full')) +pool.emitter.on('busy', () => console.log('Pool is busy')) // the execute method signature is the same for both implementations, // so you can easy switch from one to another @@ -205,7 +205,7 @@ We already have a bench folder where you can find some comparisons. Before to jump into each poolifier pool type, let highlight that **Node.js comes with a thread pool already**, the libuv thread pool where some particular tasks already run by default. Please take a look at [which tasks run on the libuv thread pool](https://nodejs.org/en/docs/guides/dont-block-the-event-loop/#what-code-runs-on-the-worker-pool). -Now **if your task runs on libuv thread pool**, you can try to: +**If your task runs on libuv thread pool**, you can try to: - Tune the libuv thread pool size setting the [UV_THREADPOOL_SIZE](https://nodejs.org/api/cli.html#cli_uv_threadpool_size_size)