Method: Krakow::Connection#process_to_queue!
- Defined in:
- lib/krakow/connection.rb
#process_to_queue! ⇒ nil
Receive messages and place into queue
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/krakow/connection.rb', line 212 def process_to_queue! unless(@running) @running = true while(@running) = handle(receive) if() debug "Adding message to queue #{message}" queue << if(notifier) warn "Sending new message notification: #{notifier} - #{message}" notifier.broadcast() end else debug 'Received `nil` message. Ignoring.' end end end nil end |