Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use std::thread::available_parallelism() instead of num_cpus #6432

Closed
Darksonn opened this issue Mar 26, 2024 · 0 comments · Fixed by #6709
Closed

Use std::thread::available_parallelism() instead of num_cpus #6432

Darksonn opened this issue Mar 26, 2024 · 0 comments · Fixed by #6709
Labels
A-tokio Area: The main tokio crate C-feature-request Category: A feature request. M-runtime Module: tokio/runtime S-blocked Status: marked as blocked ❌ on something else such as a PR or other implementation work. S-blocked-on-msrv Status: need an MSRV bump to progress

Comments

@Darksonn
Copy link
Contributor

Once we bump our MSRV to 1.64 or greater, we should replace our usage of num-cpus with the std::thread::available_parallelism() method.

Previous issue: #6211.

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-runtime Module: tokio/runtime C-feature-request Category: A feature request. S-blocked Status: marked as blocked ❌ on something else such as a PR or other implementation work. labels Mar 26, 2024
@maminrayej maminrayej added the S-blocked-on-msrv Status: need an MSRV bump to progress label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-feature-request Category: A feature request. M-runtime Module: tokio/runtime S-blocked Status: marked as blocked ❌ on something else such as a PR or other implementation work. S-blocked-on-msrv Status: need an MSRV bump to progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants