Skip to content

A simple timer used to schedule execution of closures at a given timestamp.

License

Notifications You must be signed in to change notification settings

ruanpetterson/timeware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;

About

A simple timer used to schedule execution of closures at a given timestamp.

Resources

License

Stars

Watchers

Forks

Languages