cli icon indicating copy to clipboard operation
cli copied to clipboard

watch without command timeout

Open genofire opened this issue 4 years ago • 1 comments

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 ...

genofire avatar Oct 29 '21 07:10 genofire

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.

eternal-flame-AD avatar Aug 02 '24 21:08 eternal-flame-AD