Function run

Source
async fn run<T>(rt_support: &dyn RuntimeSupport, ratelim: Arc<RateLim<T>>)
where T: Loggable,
Expand description

Helper: runs in a background task, and periodically flushes the Loggable in ratelim. Exits after [Loggable::flush] returns [Activity::Dormant] for “long enough”.