Top Level Namespace

Defined Under Namespace

Modules: Timeout

Constant Summary collapse

TimeoutError =

Another name for Timeout::Error, defined for backwards compatibility with earlier versions of timeout.rb.

Timeout::Error

Instance Method Summary collapse

Instance Method Details

#timeout(n, e = nil, &block) ⇒ Object

Identical to:

Timeout::timeout(n, e, &block).

Defined for backwards compatibility with earlier versions of timeout.rb, see Timeout#timeout.



92
93
94
# File 'lib/timeout.rb', line 92

def timeout(n, e = nil, &block) # :nodoc:
  Timeout::timeout(n, e, &block)
end