Skip to main content

new_progress_bar

Function new_progress_bar 

Source
pub fn new_progress_bar(len: u64) -> ProgressBar
Expand description

Create a progress bar registered with the shared MULTI_PROGRESS and styled with the standard template. Attach a trailing label with ProgressBar::with_message, e.g. new_progress_bar(n).with_message("blocks"). Repaints on the shared [STEADY_TICK] cadence.