Timer Simple implementation of a Timer in async Rust. Example let task = || { eprintln!("task was executed"); None }; let timer = Timer::new(task).with_graceful_shutdown(signal::ctrl_c()); timer.await;