[rabbitmq-discuss] Ending a computation when the queue runs out of items

Simon MacMullen simon at rabbitmq.com
Tue Jun 26 18:22:47 BST 2012


On 26/06/12 13:17, Ask Solem wrote:
> The important part in the example to keep draining events from the connection
> until it raises a timeout.

Ah, right, of course. I am somewhat allergic to timeouts, but this can 
work if you're happy that (no message delivered in n seconds) -> (there 
are no messages).

Or you could combine the two ideas.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list