April 2026

Sleep for a Time in Rust's tokio

use tokio::time::{sleep, Duration};

sleep(Duration::from_millis(100)).await;
println!("100 ms have elapsed");
end of line