pub fn deadline<F: Future>(deadline: Instant, f: F) -> Timeout<F> ⓘ
Like timeout, but with an explicit deadline.
timeout