Suspend multi-progress rendering to run a closure. This temporarily hides the progress bars so that other output (e.g., log messages, prompts) can be displayed cleanly. # Arguments `mp` - The multi-progress container `f` - The closure to run while progress is suspended
(mp: &MultiProgress, f: impl FnOnce() -> R)
| 212 | /// * `mp` - The multi-progress container |
| 213 | /// * `f` - The closure to run while progress is suspended |
| 214 | pub fn suspend<R>(mp: &MultiProgress, f: impl FnOnce() -> R) -> R { |
| 215 | mp.suspend(f) |
| 216 | } |
| 217 | |
| 218 | // Progress Bar Completion |
| 219 |