pub async fn timeout<T: Send + 'static>(
clock: &dyn Clock,
fut: impl Future<Output = T> + Send + 'static,
after: Duration,
) -> Option<T>Expand description
Typed wrapper over Clock::timeout_any. None means the clock
abandoned the future after after.