Function deterministic::spawn::spawn_with_random_prio
source · pub fn spawn_with_random_prio<F, T>(f: F) -> JoinHandle<T>where
F: FnOnce() -> T,
F: Send + 'static,
T: Send + 'static,
Expand description
Spawn a thread with a thread priority determined by a
(possibly pre-seeded) rand::Rng
.