1 2 3 4 5 6 7 8 9 10 11 12 13
use throbberous::Throbber; use tokio::time::{sleep, Duration}; #[tokio::main] async fn main() { println!("Throbber"); let throbber = Throbber::new_plain(); throbber.start().await; // Spins: | / - \ with "Working..." sleep(Duration::from_secs(5)).await; throbber.stop().await; }