Function mango_v4_client::delay_interval
source · pub fn delay_interval(period: Duration) -> Interval
Expand description
Like tokio::time::interval(), but with Delay as default MissedTickBehavior
The default (Burst) means that if the time between tick() calls is longer
than period
there’ll be a burst of catch-up ticks.
This Interval guarantees that when tick() returns, at least period
will have
elapsed since the last return. That way it’s more appropriate for jobs that
don’t need to catch up.