Skip to content

Commit

Permalink
test new available_concurrency function
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Oct 18, 2020
1 parent 2f390c0 commit 5df6d8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
043eca7f0b34d12e61c44206beca740628647080
c38ddb8040edce1b05bc09a0e8439472e9f67623
5 changes: 5 additions & 0 deletions tests/run-pass/available-concurrency.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#![feature(available_concurrency)]

fn main() {
assert_eq!(std::thread::available_concurrency().unwrap().get(), 1);
}

0 comments on commit 5df6d8b

Please sign in to comment.