Top Level Namespace

Defined Under Namespace

Modules: Timeout Classes: Object

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(*args, &block) ⇒ Object



118
119
120
121
# File 'lib/timeout.rb', line 118

def timeout(*args, &block)
  warn "#{caller_locations(1, 1)[0]}: Object##{__method__} is deprecated, use Timeout.timeout instead."
  Timeout.timeout(*args, &block)
end