Guest User

Untitled

a guest
Jul 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. mq = MQ.new
  2. mq.prefetch(10)
  3. mq.queue('name').subscribe(:ack => true) do |info, msg|
  4. process(msg)
  5. info.ack
  6. end
Add Comment
Please, Sign In to add comment