with_spinner

Function with_spinner 

Source
pub fn with_spinner<F, T>(message: &str, f: F) -> T
where F: FnOnce() -> T,
Expand description

Run a function with a spinner animation. Falls back to static text if not a TTY.