| Crates.io | timer-rs |
| lib.rs | timer-rs |
| version | 0.0.6 |
| created_at | 2023-07-27 11:22:30.558882+00 |
| updated_at | 2023-08-21 17:55:17.857156+00 |
| description | A simple timer used to schedule execution of closures at a given timestamp. |
| homepage | |
| repository | https://github.com/ruanpetterson/timer-rs |
| max_upload_size | |
| id | 927316 |
| size | 39,297 |
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;