class Rufus::Scheduler::SignalScheduler

A rufus-scheduler that steps only when the ruby process receives the 10 / USR1 signal.

Public Class Methods

new(opts={}) click to toggle source
# File lib/rufus/sc/scheduler.rb, line 382
def initialize (opts={})

  super(opts)

  trap(@options[:signal] || 10) do
    step
  end
end

Public Instance Methods

stop() click to toggle source
# File lib/rufus/sc/scheduler.rb, line 391
def stop

  trap(@options[:signal] || 10)
end