Sha256: 8c208ce45e83ab1dfc5890353d5b2f06fc8005684ae622827a65d05abb35a072
Contents?: true
Size: 474 Bytes
Versions: 33
Compression:
Stored size: 474 Bytes
Contents
use rayon_core::ThreadPoolBuilder; use std::error::Error; #[test] #[cfg_attr(any(target_os = "emscripten", target_family = "wasm"), ignore)] fn double_init_fail() { let result1 = ThreadPoolBuilder::new().build_global(); assert!(result1.is_ok()); let err = ThreadPoolBuilder::new().build_global().unwrap_err(); assert!(err.source().is_none()); assert_eq!( err.to_string(), "The global thread pool has already been initialized.", ); }
Version data entries
33 entries across 33 versions & 1 rubygems