Abstract the waiting into rabbit_amqqueue.