[go: up one dir, main page]

Function timeout_ms

Source
pub fn timeout_ms<F>(f: F, max_ms: u32)
where F: FnOnce() + Send + 'static,
Expand description

Run f for at most max_ms, this function will panic if f is still running.