Re: [Twisted-Python] How to safely stop a chain of deferreds

2011-06-29 Thread Jason Rennie
On Tue, Jun 28, 2011 at 9:30 AM, tomw wrote: > in a GUI application I'm using quite a comprehensive chain of deferreds > and I'm running the mainloop from the glib2reactor. At a certain point > of my application I need to terminate the entire chain of deferreds to > make sure that no more data is

Re: [Twisted-Python] How to safely stop a chain of deferreds

2011-06-28 Thread Orestis Markou
On 28 Jun 2011, at 20:37, exar...@twistedmatrix.com wrote: > On 01:30 pm, t...@ubilix.com wrote: >> Hi, >> >> in a GUI application I'm using quite a comprehensive chain of deferreds >> and I'm running the mainloop from the glib2reactor. At a certain point >> of my application I need to terminate

Re: [Twisted-Python] How to safely stop a chain of deferreds

2011-06-28 Thread exarkun
On 01:30 pm, t...@ubilix.com wrote: >Hi, > >in a GUI application I'm using quite a comprehensive chain of deferreds >and I'm running the mainloop from the glib2reactor. At a certain point >of my application I need to terminate the entire chain of deferreds to >make sure that no more data is loaded

Re: [Twisted-Python] How to safely stop a chain of deferreds

2011-06-28 Thread Terry Jones
Hi Tom > in a GUI application I'm using quite a comprehensive chain of deferreds > and I'm running the mainloop from the glib2reactor. At a certain point of > my application I need to terminate the entire chain of deferreds to make > sure that no more data is loaded and processed. Stopping the rea

Re: [Twisted-Python] How to safely stop a chain of deferreds

2011-06-28 Thread Itamar Turner-Trauring
On Tue, 2011-06-28 at 15:30 +0200, tomw wrote: > I tried to > cancel the first deferred, hoping that the cancel event will be > forwarded to the next deferred in the chain or at least invoke an > errback, but for some reason it does not work and the deferreds seem to > run forever. Any ideas on ho