Function timeout_at
Source pub fn timeout_at<F>(deadline: Instant, future: F) -> Timeout<F> ⓘ
Available on crate features runtime and time only.
Expand description
Require a Future to complete before the specified instant in time.
If the future completes before the instant is reached, then the completed
value is returned. Otherwise, an error is returned.
§Panics
Panic if not running under a Runtime.