X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=README.md;h=8f343c399943a803e60fc5c64a26002dfa8a81fd;hb=2af05385b232809ad91e6306bc8650c46edaf67c;hp=110fbc4f81e625e04ffeeddcca5753f93b2e1245;hpb=5ea2262889dc3886579289b0d7205632bfea4bf2;p=poolifier.git diff --git a/README.md b/README.md index 110fbc4f..8f343c39 100644 --- a/README.md +++ b/README.md @@ -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)