cron_next 0.1.0

cron_next is a tool base on cron_clock and tokio, make it easy to use with cron jobs
Documentation
  • Coverage
  • 80%
    4 out of 5 items documented3 out of 3 items with examples
  • Size
  • Source code size: 20.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.07 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 35s Average build duration of successful builds.
  • all releases: 35s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • govo

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");