Function spawn_on_main_thread

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