Can I set timeout for publishing message using bunny gem?

admin

Administrator
Staff member
I'd like to publish messages to RabbitMQ using <a href="https://github.com/ruby-amqp/bunny" rel="nofollow">Bunny</a> gem. The reason I chose Bunny is ease-of-use compared to <a href="https://github.com/ruby-amqp/amqp/" rel="nofollow">AMQP</a>.

I can set timeout for subscription (<a href="http://bunnyamqp.wordpress.com/2009/08/20/bunny-howto-subscribe-to-a-queue/" rel="nofollow">example</a>). But I couldn't find how to set timeout for publish.

Should I use AMQP gem with <a href="https://github.com/eventmachine/eventmachine" rel="nofollow">EventMachine</a> instead of using Bunny?

References:

<ul>
<li><a href="https://github.com/ruby-amqp/bunny/blob/master/lib/bunny/channel.rb#L533" rel="nofollow">https://github.com/ruby-amqp/bunny/blob/master/lib/bunny/channel.rb#L533</a></li>
</ul>