← Back to team overview

txamqp-user team mailing list archive

How do I subscribe to a queue in txamqp?

 

Hi,
  I'm very new to txamqp and was wondering if there was an obvious way
to subscribe to a queue that I simply couldn't see. Almost all examples
for getting messages from a queue I've seen involves calling queue.get() (i.e. We are polling).

 Isn't there any way for a consumer to simply be notified with a callback whenever some producer writes to a queue (without using while True: returnValue(yield queue.get())?



Follow ups