class Rufus::Scheduler::PlainScheduler
original rufus-scheduler).
A classical implementation, uses a sleep/step loop in a thread (like the
def join
def join @thread.join end
def start
def start @thread = Thread.new do loop do sleep(@frequency) step end end @thread[:name] = @options[:thread_name] || "#{self.class} - #{Rufus::Scheduler::VERSION}" end
def stop(opts={})
def stop(opts={}) @thread.exit end