timer-rs 0.0.6

A simple timer used to schedule execution of closures at a given timestamp.
Documentation

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;