/// Threading utilities pub mod thread { /// Like `thread::spawn`, but with a `name` argument pub fn spawn_named(name: S, f: F) -> ::std::thread::JoinHandle where F: FnOnce() -> T, F: Send + 'static, T: Send + 'static, S: Into { ::std::thread::Builder::new().name(name.into()).spawn(f).expect("thread spawn works") } }