pub fn suspend_tracing_indicatif<F: FnOnce() -> R, R>(f: F) -> RExpand description
Hide all progress bars managed by IndicatifLayer (if it exists), executes f, then redraws
the progress bars. Identical to indicatif::MultiProgress::suspend.
Executes f even if there is no default tracing subscriber or if a IndicatifLayer has not
been registered to that subscriber.
NOTE: this does not suspend stdout/stderr prints from other threads, including things like
tracing::info!. This only suspends the drawing of progress bars.
WARNING: this holds an internal lock within MultiProgress. Calling methods like
writeln!(get_indicatif_stderr_writer(), "foobar") or calling this method inside of f will
result in a deadlock.