Create a spinner for operations with unknown duration. Spinners are used when we don't know how long an operation will take or how much work remains. They provide visual feedback that something is happening without showing percentage progress. # Arguments `message` - The message to display next to the spinner # Returns A configured [`ProgressBar`] with spinner styling. # Example ```rust,ign
(message: &str)
| 83 | /// progress::finish_success(&spinner, "Connected!"); |
| 84 | /// ``` |
| 85 | pub fn create_spinner(message: &str) -> ProgressBar { |
| 86 | let pb = ProgressBar::new_spinner(); |
| 87 | pb.set_style(spinner_style()); |
| 88 | pb.set_message(message.to_string()); |
| 89 | pb.enable_steady_tick(Duration::from_millis(SPINNER_TICK_MS)); |
| 90 | pb |
| 91 | } |
| 92 | |
| 93 | /// Create a progress bar for operations with known total. |
| 94 | /// |