Trait stop_token::future::FutureExt[][src]

pub trait FutureExt: Future {
    fn until<T, D>(self, target: T) -> Stop<Self, D>
Notable traits for Stop<F, D>
impl<F, D> Future for Stop<F, D> where
    F: Future,
    D: Future<Output = ()>, 
type Output = Result<F::Output, TimedOutError>;

    where
        Self: Sized,
        T: IntoDeadline<Deadline = D>
, { ... } }
Expand description

Extend the Future trait with the until method.

Provided methods

Run a future until it resolves, or until a deadline is hit.

Implementors