pub fn spawn_timeout<F>( cb: &'static F, wait_time: Duration) -> Box<dyn Fn() + Send + 'static>where F: Fn() + Sync,