async_sleep::timeout

Function timeout_at

Source
pub fn timeout_at<SLEEP, T>(
    deadline: Instant,
    future: T,
) -> impl Future<Output = Result<T::Output, Error>>
where SLEEP: Sleepble, T: Future + Unpin,