lholden / job_scheduler

A simple cron-like job scheduling library for Rust.
Apache License 2.0
196 stars 34 forks source link

Add a method to determine the next time a job is supposed to run. #17

Closed apollo13 closed 4 years ago

apollo13 commented 4 years ago

I have added a method to determine when the next job is supposed to run, this can help to more efficiently sleep (ie sleep till the next job is ready instead of waking up every 500ms).

Another commit ran rustfmt over the codebase.

lholden commented 4 years ago

Thanks for the pull request. :)