Function spawn_local_on_main_thread

Source
pub fn spawn_local_on_main_thread<F>(f: F)
where F: Future<Output = ()> + 'static,