pub fn create_task_progress(&self, label: String) -> TaskProgress {
        let mut progress = TaskProgress::new(label.clone(), self.label_width);

        if let Some(multi) = self.multi.as_ref() {
            let bar = multi.add(IndicatifBar::new(100));
            let (style, _) = get_spinner_styles(self.label_width);
            bar.set_prefix(&label);
            bar.set_style(style);
            bar.enable_steady_tick(100);

            progress.set_bar(bar);
        }

        progress
    }
/// Returns a handle for a task to display progress information.
Returns a handle for a task to display progress information.
Returns a handle for a task to display progress information .
pub fn create_task_progress(&self, label: String) -> TaskProgress {
        let mut progress = TaskProgress::new(label.clone(), self.label_width);
        if let Some(multi) = self.multi.as_ref() {
            let bar = multi.add(IndicatifBar::new(100));
            let (style, _) = get_spinner_styles(self.label_width);
            bar.set_prefix(&label);
            bar.set_style(style);
            bar.enable_steady_tick(100);
            progress.set_bar(bar);
        }
        progress
    }
pub fn create_task_progress ( & self , label : String ) -> TaskProgress { let mut progress = TaskProgress :: new ( label . clone ( ) , self . label_width ) ; if let Some ( multi ) = self . multi . as_ref ( ) { let bar = multi . add ( IndicatifBar :: new ( 100 ) ) ; let ( style , _ ) = get_spinner_styles ( self . label_width ) ; bar . set_prefix ( & label ) ; bar . set_style ( style ) ; bar . enable_steady_tick ( 100 ) ; progress . set_bar ( bar ) ; } progress }
Returns a handle for a task to display progress information.
Returns a handle for a task to display progress information .
&self
label
String