Skip to main content

with_timeout

Function with_timeout 

Source
pub async fn with_timeout<'a, F>(
    fut: F,
    d: SimDuration,
) -> Result<F::Output, TimeoutError>
where F: Future + 'a,
Expand description

Run fut with a simulation-time timeout.