Method: Workling::Invokers::BasicPoller#listen

Defined in:
lib/workling/invokers/basic_poller.rb

#listenObject

Starts main Invoker Loop. The invoker runs until stop() is called.



18
19
20
21
22
23
24
25
26
# File 'lib/workling/invokers/basic_poller.rb', line 18

def listen
  connect do
    loop_routes do |route|
      if args = @client.retrieve(route)
        run(route, args)
      end
    end
  end
end