Debian Codegraph @

.cargo/vendor/rayon-core/tests/init_zero_threads.rs

raw
1 use rayon_core::ThreadPoolBuilder;
2
3 #[test]
4 #[cfg_attr(any(target_os = "emscripten", target_family = "wasm"), ignore)]
5 fn init_zero_threads() {
6 ThreadPoolBuilder::new()
7 .num_threads(0)
8 .build_global()
9 .unwrap();
10 }