☰
Debian Codegraph
@
1.4.4-1
/
/
.cargo
/
vendor
/
rayon-core
/
tests
/
init_zero_threads.rs
☽
☼
.cargo/vendor/rayon-core/tests/init_zero_threads.rs
code
plain
raw
Apache-2.0-Expat
2010, The Rust Project Developers; 2014, The Rust Project Developers; 2014-2020, The Rust Project Developers; 2015, The Rust Project Developers; 2016, The Rust Project Developers
debian/copyright
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
}