MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / suspend

Function suspend

atomic-cli/src/output/progress.rs:214–216  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

212/// * `mp` - The multi-progress container
213/// * `f` - The closure to run while progress is suspended
214pub fn suspend<R>(mp: &MultiProgress, f: impl FnOnce() -> R) -> R {
215 mp.suspend(f)
216}
217
218// Progress Bar Completion
219

Callers 1

test_suspendFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_suspendFunction · 0.68