method

create_timer

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: MonitorMixin::ConditionVariable
create_timer(timeout) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/monitor.rb, line 170
    def create_timer(timeout)
      if timeout
        waiter = Thread.current
        return Thread.start {
          Thread.pass
          sleep(timeout)
          Thread.critical = true
          waiter.raise(Timeout.new)
        }
      else
        return nil
      end
    end
Register or log in to add new notes.