method

catch

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