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



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

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