Skip to main content

timeout_at

Function timeout_at 

Source
pub async fn timeout_at<F: IntoFuture>(
    deadline: Option<TimeValue>,
    f: F,
) -> Result<F::Output, Elapsed>
Expand description

Requires a Future to complete before the specified monotonic deadline.