rust/tests/run-pass/available-concurrency.rs

4 lines
86 B
Rust
Raw Normal View History

fn main() {
2021-10-07 13:52:11 -05:00
assert_eq!(std::thread::available_parallelism().unwrap().get(), 1);
}