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.
pub async fn with_timeout<'a, F>(
fut: F,
d: SimDuration,
) -> Result<F::Output, TimeoutError>where
F: Future + 'a,Run fut with a simulation-time timeout.