title: Is there a Groovy equivalent of the Ruby Timeout module?
body: <p>In Ruby I would use the Timeout module, where it executes a block and will stop executing the code if it passes the timeout.</p>
  
  <pre><code>require 'timeout'
  status = Timeout::timeout(5) {
    # Something that should be interrupted if it takes too much time...
  }
  </code></pre>
  
  <p>Does Groovy have something like this?</p>