[][src]Function see_you_later::every

pub fn every<T, C>(
    delay: Duration,
    task: C
) -> (CancelToken, ScheduledTask<C, T>) where
    T: Future<Output = ()>,
    C: Fn() -> T, 

Schedule a periodic task every Duration. The first task is scheduled immediately and subsequently with the given delay from the termination of the last execution Returns the scheduled task which needs to be awaited on and the cancel token.