referrerpolicy=no-referrer-when-downgrade

Trait polkadot_node_subsystem_util::TimeoutExt

pub trait TimeoutExt: Future {
    // Provided method
    fn timeout(self, duration: Duration) -> Timeout<Self> 
       where Self: Sized { ... }
}
Expand description

Extends Future to allow time-limited futures.

Provided Methods§

fn timeout(self, duration: Duration) -> Timeout<Self>
where Self: Sized,

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

Implementors§

§

impl<F> TimeoutExt for F
where F: Future,