Crate timebomb

Source

Functionsยง

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