pub trait FutureExt: Future { // Provided method fn timeout_at<T>(self, target: T) -> TimeoutAt<Self> ⓘ where Self: Sized, T: Into<Deadline> { ... } }
Extend the Future trait with the until method.
Future
until
Run a future until it resolves, or until a deadline is hit.