class SayWhen::Poller::CelluloidPoller
Public Class Methods
new(tick = nil)
click to toggle source
# File lib/say_when/poller/celluloid_poller.rb, line 18 def initialize(tick = nil) @tick_length = tick.to_i if tick start end
Public Instance Methods
start()
click to toggle source
# File lib/say_when/poller/celluloid_poller.rb, line 23 def start @tick_timer = every(tick_length) { process_jobs } end
stop()
click to toggle source
# File lib/say_when/poller/celluloid_poller.rb, line 27 def stop if @tick_timer @tick_timer.cancel @tick_timer = nil end end