Skip to main content

spin_while

Function spin_while 

Source
pub async fn spin_while<F, T>(label: &str, future: F) -> T
where F: Future<Output = T>,
Expand description

Run an async future while displaying a braille spinner with the given label. Returns the future’s result after stopping the spinner.