spawn_with_state

Function spawn_with_state 

Source
pub fn spawn_with_state<F, T>(name: String, f: F) -> JoinHandle<T>
where F: FnOnce(ThreadState) -> T + Send + 'static, T: Send + 'static,