txamqp-user team mailing list archive
-
txamqp-user team
-
Mailing list archive
-
Message #00072
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