A classical implementation, uses a sleep/step loop in a thread (like the original rufus-scheduler).
# File lib/rufus/sc/scheduler.rb, line 371
371: def join
372:
373: @thread.join
374: end
# File lib/rufus/sc/scheduler.rb, line 352
352: def start
353:
354: @thread = Thread.new do
355: loop do
356: sleep(@frequency)
357: self.step
358: end
359: end
360:
361: @thread[:name] =
362: @options[:thread_name] ||
363: "#{self.class} - #{Rufus::Scheduler::VERSION}"
364: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.