schedule-rs
schedule-rs copied to clipboard
Short-hand expression for Constant Delay
As per author: "Constant Delay; an extension I've seen that is neat is @every 1h to define a delayed task instead of a scheduled task"
This is sort of done. The short-hand syntax is not there but the constant delay is. Going to change this issue to focus on the syntax.
my_agenda.add(|| { }).schedule(Duration::seconds(10));