| Crates.io | timeware |
| lib.rs | timeware |
| version | 0.2.0 |
| created_at | 2023-08-30 18:07:56.233758+00 |
| updated_at | 2024-04-25 18:30:37.550673+00 |
| description | A simple timer used to schedule execution of closures at a given timestamp. |
| homepage | |
| repository | https://github.com/ruanpetterson/timeware |
| max_upload_size | |
| id | 959188 |
| size | 42,572 |
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;