cron_next

Crates.iocron_next
lib.rscron_next
version0.1.0
sourcesrc
created_at2022-04-19 13:09:22.414165
updated_at2022-04-19 13:09:22.414165
descriptioncron_next is a tool base on cron_clock and tokio, make it easy to use with cron jobs
homepage
repository
max_upload_size
id570297
size4,613
Govo (govo)

documentation

README

Cron Next is a tool base on cron_clock and tokio, make it easy to use with cron jobs

Examples

let expression = "* * * * * ? *";
let mut cron = CronNext::new(expression, chrono::Local)?;
while let Some(time) = cron.next().await {
  println!("time: {:?}, {:?}", time, chrono::Local::now());
}
println!("if not a forever loop job, will stop finally");
Commit count: 0

cargo fmt