class Healthyr::EventAgent::AgentThread

Public Class Methods

new(duration, &block) click to toggle source
# File lib/healthyr/event_agent.rb, line 37
def initialize(duration, &block)
  Thread.abort_on_exception = true
  Thread.new do
    while true
      sleep duration
      block.call
    end
  end
end