Sha256: 092bf700dad7951ddf2c643572179113303875c90437e3067a13d9d1dcd8329d
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
module SearchKit class Events # This file houses the polling loop of the Event service. # class Poll autoload :Process, 'search_kit/events/poll/process' def self.perform(channel, &block) new(channel, &block).perform end attr_reader :block, :channel def initialize(channel, &block) @block = block @channel = channel end def perform loop do process_queue sleep 1 end end def process_queue SearchKit::Events::Poll::Process.perform(channel, &block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
search-kit-0.0.2 | lib/search_kit/events/poll.rb |