Hello all,
q = b.queue(responde)
q.subscribe(:timeout=>3) do |msg|
puts "Got #{msg[:payload]}, Going to
unsubscribe"
q.unsubscribe
puts "Ready"
end
Should the above code work?
I expected the it would get 1 message and then quits the subscriptions
of the queue, so the flow of the program can continue.
I get this then the program receives a message:
Got Ok, Going to unsubscribe
Ready
.../bunny/lib/bunny/queue08.rb:321:in `unsubscribe': No consumer tag
received (Bunny::UnsubscribeError)
When it does not get any mesage, i.e. it passes more than 3 seconds,
it quits clean.
Should it raise a timeout error?
Thanks!.
_______________________________________________
bunny-amqp-devel mailing list
bunny-am...@rubyforge.org
http://rubyforge.org/mailman/listinfo/bunny-amqp-devel
--
You received this message because you are subscribed to the Google Groups "bunny-amqp" group.
To post to this group, send email to
bunny...@googlegroups.com.
To unsubscribe from this group, send email to
bunny-amqp+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/bunny-amqp?hl=en.