Skip to main content

timeout

Function timeout 

Source
pub async fn timeout<F: Future>(
    limit: Duration,
    work: F,
) -> Result<F::Output, Elapsed>
Expand description

work, or Elapsed past limit; given up then, as when it is dropped.