Skip to main content

block_on_browser_timeout

Function block_on_browser_timeout 

Source
pub fn block_on_browser_timeout<F, T>(
    fut: F,
    timeout_secs: u64,
) -> Result<T, CliError>
where F: Future<Output = Result<T, CliError>>,
Expand description

Like block_on_browser, but abort with ErrorKind::Timeout when timeout_secs > 0.