unsafe fn spawn_job<F>(func: F, registry: &Arc<Registry>) -> JobRefwhere F: FnOnce() + Send + 'static,