referrerpolicy=no-referrer-when-downgrade
sc_rpc::testing

Function timeout_secs

Source
pub fn timeout_secs<I, F: Future<Output = I>>(s: u64, f: F) -> Timeout<F>
Expand description

Wrap a future in a timeout a little more concisely