17 releases (2 stable)
Uses new Rust 2024
| 1.1.0 | Sep 29, 2025 |
|---|---|
| 1.0.0 | Jul 3, 2024 |
| 0.1.14 | Jan 18, 2023 |
| 0.1.12 | Dec 11, 2022 |
| 0.1.2 | Sep 19, 2022 |
#643 in Unix APIs
217 downloads per month
Used in 8 crates
(6 directly)
9KB
188 lines
Async Timing Util
Convenient utilities for doing repeated tasks at precise intervals.
use async_timing_util::{Timelength, wait_until_timelength};
loop {
let ts = wait_until_timelength(Timelength::OneHour, 0).await;
/// Do something async every hour, on the hour.
/// Runs at 00:00, 01:00, 02:00, etc.
}
Dependencies
~2.1–3.5MB
~57K SLoC