Skip to main content

timeout_at

Function timeout_at 

Source
pub fn timeout_at<Fut>(
    deadline: Instant,
    future: Fut,
) -> impl Future<Output = Result<Fut::Output, Elapsed>>
where Fut: Future,
Expand description

Race future against a deadline. Shape-compatible with tokio::time::timeout_at.