timeware

Crates.iotimeware
lib.rstimeware
version0.2.0
sourcesrc
created_at2023-08-30 18:07:56.233758
updated_at2024-04-25 18:30:37.550673
descriptionA simple timer used to schedule execution of closures at a given timestamp.
homepage
repositoryhttps://github.com/ruanpetterson/timeware
max_upload_size
id959188
size42,572
Andrés Castiglia (acastigliaripio)

documentation

README

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;
Commit count: 24

cargo fmt