[rabbitmq-discuss] Erlang OTP handle

Alvaro Videla videlalvaro at gmail.com
Wed Apr 17 20:00:46 BST 2013


Yes, it's possible. Use handle_info in your gen_server behaviour and then
pattern match on the parameters.

handle_info is used for messages that are sent to the process but that are
not part of the gen_server API.


On Wed, Apr 17, 2013 at 8:54 PM, Lee Sylvester <lee.sylvester at gmail.com>wrote:

> Hey guys,
>
> So, I'm using RabbitMQ with Erlang.  Does anyone know how I'd receive
> messages through amqp_client using OTP?  The examples only show using a
> loop with the receive, whereas I'd like to avoid an actual loop where
> possible.
>
> Thanks,
> Lee
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130417/2bafff32/attachment.htm>


More information about the rabbitmq-discuss mailing list