Skip to Content Skip to Search

Raised by Timeout.timeout when the block times out.

Methods
H

Class Public methods

handle_timeout(message)

# File ruby/lib/timeout.rb, line 37
def self.handle_timeout(message)
  exc = ExitException.new(message)

  begin
    yield exc
  rescue ExitException => e
    raise new(message) if exc.equal?(e)
    raise
  end
end