Trait polkadot_node_subsystem_util::TimeoutExt[][src]

pub trait TimeoutExt: Future {
    fn timeout(self, duration: Duration) -> Timeout<Self>
Notable traits for Timeout<F>
impl<F> Future for Timeout<F> where
    F: Future
type Output = Option<<F as Future>::Output>;
{ ... } }
Expand description

Extends Future to allow time-limited futures.

Provided methods

Adds a timeout of duration to the given Future. Returns a new Future.

Implementors