Guest User

Untitled

a guest
Jul 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1.  
  2. require 'mq'
  3.  
  4. AMQP.start do
  5. q = MQ.queue('my_queue')
  6.  
  7. q.subscribe do |msg|
  8. puts "#{Time.now}: #{msg}" if msg
  9. end
  10. end
Add Comment
Please, Sign In to add comment