method
catch
v2_2_9 -
Show latest stable
- Class:
Timeout::Error
catch(*args)public
No documentation available.
# File lib/timeout.rb, line 29
def self.catch(*args)
exc = new(*args)
exc.instance_variable_set(:@thread, Thread.current)
::Kernel.catch(exc) {yield exc}
end