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

Function add_spinner

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

Add a spinner to a multi-progress container. # Arguments `mp` - The multi-progress container `message` - The spinner message

(mp: &MultiProgress, message: &str)

Source from the content-addressed store, hash-verified

180/// * `mp` - The multi-progress container
181/// * `message` - The spinner message
182pub fn add_spinner(mp: &MultiProgress, message: &str) -> ProgressBar {
183 let pb = mp.add(ProgressBar::new_spinner());
184 pb.set_style(spinner_style());
185 pb.set_message(message.to_string());
186 pb.enable_steady_tick(Duration::from_millis(SPINNER_TICK_MS));
187 pb
188}
189
190/// Add a progress bar to a multi-progress container.
191///

Callers 3

test_suspendFunction · 0.85

Calls 2

spinner_styleFunction · 0.85
addMethod · 0.45

Tested by 3

test_suspendFunction · 0.68