async_timer

Function timed

Source
pub fn timed<F: Future>(
    job: F,
    timeout: Duration,
) -> impl Future<Output = Result<F::Output, Expired<F, Timer>>>
Expand description

Run future in timed fashion using default Platform timer.