okie icon indicating copy to clipboard operation
okie copied to clipboard

Dead simple worker threads pool

Results 3 okie issues
Sort by recently updated
recently updated
newest added

Now Node.js recommends using `os.availableParallelism` instead of `os.cpus().length` for this purpose. https://nodejs.org/api/os.html#oscpus:~:text=os.cpus().length%20should%20not%20be%20used%20to%20calculate%20the%20amount%20of%20parallelism%20available%20to%20an%20application.%20Use%20os.availableParallelism()%20for%20this%20purpose. This PR makes the default value to use that when it's available. (Node.js 18.14.0+, 19.4.0+) https://nodejs.org/api/os.html#osavailableparallelism I also...

Hello,this repo display a convenient way to create a worker pool by Promise. But it only support using a function to create a worker pool. So i add the feature...

support creating a worker by using a file path