Skip to content

chore: use standard available_parallelism#5567

Merged
mattsse merged 1 commit intofoundry-rs:masterfrom
DaniPopes:numcpus
Aug 8, 2023
Merged

chore: use standard available_parallelism#5567
mattsse merged 1 commit intofoundry-rs:masterfrom
DaniPopes:numcpus

Conversation

@DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Aug 8, 2023

Motivation

Stabilized in 1.59.

Solution

Replace num_cpus with std::thread::available_parallelism

@mattsse mattsse merged commit d4f626b into foundry-rs:master Aug 8, 2023
@DaniPopes DaniPopes deleted the numcpus branch August 8, 2023 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants