<div dir="ltr">Yes, it&#39;s possible. Use handle_info in your gen_server behaviour and then pattern match on the parameters.<div><br></div><div>handle_info is used for messages that are sent to the process but that are not part of the gen_server API.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 17, 2013 at 8:54 PM, Lee Sylvester <span dir="ltr">&lt;<a href="mailto:lee.sylvester@gmail.com" target="_blank">lee.sylvester@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey guys,<br>
<br>
So, I&#39;m using RabbitMQ with Erlang. �Does anyone know how I&#39;d receive messages through amqp_client using OTP? �The examples only show using a loop with the receive, whereas I&#39;d like to avoid an actual loop where possible.<br>

<br>
Thanks,<br>
Lee<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br></div>