pub fn spinner(&self, msg: &str) -> Arc<FastProgressBar> {
        if self.no_progress {
            return Arc::new(FastProgressBar::new_hidden());
        }
        self.progress_bar
            .lock()
            .unwrap()
            .upgrade()
            .iter()
            .for_each(|pb| pb.finish_and_clear());
        let result = Arc::new(FastProgressBar::new_spinner(msg));
        *self.progress_bar.lock().unwrap() = Arc::downgrade(&result);
        result
    }
/// Clears any previous progress bar or spinner and installs a new spinner.
Clears any previous progress bar or spinner and installs a new spinner.
Clears any previous progress bar or spinner and installs a new spinner .
pub fn spinner(&self, msg: &str) -> Arc<FastProgressBar> {
        if self.no_progress {
            return Arc::new(FastProgressBar::new_hidden());
        }
        self.progress_bar
            .lock()
            .unwrap()
            .upgrade()
            .iter()
            .for_each(|pb| pb.finish_and_clear());
        let result = Arc::new(FastProgressBar::new_spinner(msg));
        *self.progress_bar.lock().unwrap() = Arc::downgrade(&result);
        result
    }
pub fn spinner ( & self , msg : & str ) -> Arc < FastProgressBar > { if self . no_progress { return Arc :: new ( FastProgressBar :: new_hidden ( ) ) ; } self . progress_bar . lock ( ) . unwrap ( ) . upgrade ( ) . iter ( ) . for_each ( | pb | pb . finish_and_clear ( ) ) ; let result = Arc :: new ( FastProgressBar :: new_spinner ( msg ) ) ; * self . progress_bar . lock ( ) . unwrap ( ) = Arc :: downgrade ( & result ) ; result }
Clears any previous progress bar or spinner and installs a new spinner.
Clears any previous progress bar or spinner and installs a new spinner .
&self
msg
&str
&self
msg
&str