Function spawn_oneshot_fn

Source
pub fn spawn_oneshot_fn<F>(ctrl: &Control, name: &str, f: F)
where F: Future<Output = Result<()>> + Send + 'static,