Last 12 weeks · 0 commits
2 of 6 standards met
Now Node.js recommends using instead of 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 updated TypeScript as the type check failed on my machine. I tested this change by running on Node.js 18.17.1 (Windows) and on Node.js 18.12.1 (WSL).
Repository: yyx990803/okie. Description: Dead simple worker threads pool Stars: 271, Forks: 15. Primary language: TypeScript. Languages: TypeScript (83.6%), JavaScript (16.4%). License: MIT. Open PRs: 2, open issues: 1. Last activity: 2y ago. Community health: 42%. Top contributors: yyx990803, antleblanc.