[][src]Function see_you_later::once

pub fn once<T, C>(delay: Duration, task: C) -> (CancelToken, DelayedTask<T>) where
    T: Future<Output = ()>,
    C: FnOnce() -> T, 

Schedule a onceshot task after the Duration parameter. Returns the scheduled task which needs to be awaited on and the cancel token.