Output a warning message that we want to be quite visible. The process (thread) execution will be delayed for a short time.
(s: &str)
| 148 | /// Output a warning message that we want to be quite visible. |
| 149 | /// The process (thread) execution will be delayed for a short time. |
| 150 | pub(crate) fn medium_visibility_warning(s: &str) { |
| 151 | anstream::eprintln!( |
| 152 | "{}{s}{}", |
| 153 | anstyle::AnsiColor::Red.render_fg(), |
| 154 | anstyle::Reset.render() |
| 155 | ); |
| 156 | // When warning, add a sleep to ensure it's seen |
| 157 | std::thread::sleep(std::time::Duration::from_secs(1)); |
| 158 | } |
| 159 | |
| 160 | /// Call an async task function, and write a message to stderr |
| 161 | /// with an automatic spinner to show that we're not blocked. |
no outgoing calls
no test coverage detected