async_task_with_spinner

Function async_task_with_spinner 

Source
pub(crate) async fn async_task_with_spinner<F, T>(msg: &str, f: F) -> T
where F: Future<Output = T>,
Expand description

Call an async task function, and write a message to stderr with an automatic spinner to show that we’re not blocked. Note that generally the called function should not output anything to stderr as this will interfere with the spinner.