[][src]Trait fibers::time::timer::TimerExt

pub trait TimerExt: Sized + Future {
    fn timeout_after(self, duration: Duration) -> TimeoutAfter<Self> { ... }
}

A timer related extension of the Future trait.

Provided methods

fn timeout_after(self, duration: Duration) -> TimeoutAfter<Self>

Adds the specified timeout to this future.

Loading content...

Implementors

impl<T: Future> TimerExt for T[src]

Loading content...