Open genofire opened 3 years ago
Rust async library tokio has a flexible scheduling system we can reference: https://docs.rs/tokio/latest/tokio/time/enum.MissedTickBehavior.html
We can reference these three modes for scheduling.
What you described will be MissedTickBehavior::Delay
.
sometime it is nice to run a command which is importend to complete, but the next run should not be to wide in the future.
it would be nice, that this command does not cancle on timeout, and the next run should be the interval time after the command complete time.
could we got a flag/option for it? (like --no-timeout) I like that there is also a timeout option ...