pub fn timeout<F: Future>(duration: Duration, future: F) -> Timeout<F> ⓘ
Wrap a future with a timeout.