pub fn spawn_builder_with_state<F, T>(builder: Builder, f: F) -> JoinHandle<T>where F: FnOnce(ThreadState) -> T + Send + 'static, T: Send + 'static,