Rufus::Scheduler::SchedulerCore
A classical implementation, uses a sleep/step loop in a thread (like the original rufus-scheduler).
# File lib/rufus/sc/scheduler.rb, line 364 def join @thread.join end
# File lib/rufus/sc/scheduler.rb, line 345 def start @thread = Thread.new do loop do sleep(@frequency) self.step end end @thread[:name] = @options[:thread_name] || "#{self.class} - #{Rufus::Scheduler::VERSION}" end
# File lib/rufus/sc/scheduler.rb, line 359 def stop (opts={}) @thread.exit end
[Validate]
Generated with the Darkfish Rdoc Generator 2.