Methods

Rufus::Scheduler::PlainScheduler

A classical implementation, uses a sleep/step loop in a thread (like the original rufus-scheduler).

Public Instance Methods

join() click to toggle source
     # File lib/rufus/sc/scheduler.rb, line 371
371:     def join
372: 
373:       @thread.join
374:     end
start() click to toggle source
     # 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
stop(opts={}) click to toggle source
     # File lib/rufus/sc/scheduler.rb, line 366
366:     def stop(opts={})
367: 
368:       @thread.exit
369:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.