1 2 3 4
Timeout provides a way to auto-terminate a potentially long-running operation if it hasn't finished in a fixed amount of time. WWW: https://github.com/ruby/timeout