Closed twlite closed 3 weeks ago
Run & review this pull request in StackBlitz Codeflow.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.37%. Comparing base (
2ced938
) to head (60694ee
). Report is 5 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi, @twlite Thanks for the contribution!
I wasn't aware of os.availableParallelism() - this is an excellent improvement that enables more accurate process concurrency control.
The implementation looks good, so I'll go ahead and merge this PR.
This method returns an estimate of the default amount of parallelism a program should use, compared to
cpus().length
which returns the cpu core count.