Sha256: d10108731b879a3a326fb6df67a6f6cd0644d90e47ad91fbe635d7f669e289e7
Contents?: true
Size: 546 Bytes
Versions: 8
Compression:
Stored size: 546 Bytes
Contents
module SearchKit # This file houses the polling loop of the Event service. # class Polling autoload :Process, 'search_kit/polling/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::Polling::Process.perform(channel, &block) end end end
Version data entries
8 entries across 8 versions & 1 rubygems