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).

This method is deprecated and provided only for backwards compatibility. You should use Timeout#timeout instead.



126
127
128
# File 'lib/timeout.rb', line 126

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