Function run_on_main_thread

Source
pub async fn run_on_main_thread<F, O>(f: F) -> O
where F: Future<Output = O> + 'static + Send, O: 'static + Send + Debug,