Re: [Txamqp-user] How do you listen to different queues asynchronously?

2009-11-15 Thread Terry Jones
> "Ale" == Ale writes: Ale> This is the sort of thing I wanted to achieve but without trapping Ale> exceptions. I don't know how "dirty" this is (a snip, for the whole Ale> file see paste): Ale> def whichEverFiresFirst(def1, def2): Hi Ale If you want a deferred that fires with the first o

Re: [Txamqp-user] How do you listen to different queues asynchronously?

2009-11-15 Thread Terry Jones
> I was looking for a way to stop the: > > while True: >msg = yield queue.get() > > What should I do if the loop is just stuck in yield queue.get() and I > want to cancel it? > > My program is a GTK2 app that keeps listening to messages and I would > like to stop listening when I close the a

Re: [Txamqp-user] How do you listen to different queues asynchronously?

2009-11-17 Thread Terry Jones
> "Esteve" == Esteve Fernandez writes: Esteve> there's probably something I'm missing here, but why are you Esteve> defining a function and attaching it to an errback if you're Esteve> already using inlineCallbacks? This looks cleaner to me: I wasn't understanding Ale's situation. We talked l