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