timer-rs 0.0.6

A simple timer used to schedule execution of closures at a given timestamp.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Timer

Simple implementation of a Timer in async Rust.

# Example

```rust
let task = || {
    eprintln!("task was executed");
    None
};

let timer = Timer::new(task).with_graceful_shutdown(signal::ctrl_c());

timer.await;
```