Function with_timeout

Source
pub fn with_timeout<F, T>(timeout_ms: u64, f: F) -> ADBResult<T>
where F: FnOnce() -> ADBResult<T> + Send + 'static, T: Send + 'static,
Expand description

带超时执行操作