<div class="gmail_quote">On Tue, Jun 28, 2011 at 9:30 AM, tomw <span dir="ltr">&lt;<a href="mailto:tomw@ubilix.com">tomw@ubilix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

in a GUI application I&#39;m using quite a comprehensive chain of deferreds<br>
and I&#39;m running the mainloop from the glib2reactor. At a certain point<br>
of my application I need to terminate the entire chain of deferreds to<br>
make sure that no more data is loaded and processed.</blockquote><div><br></div><div>Have you tried setting up appropriate callback functions and raising an Exception at the point where the callback chain should be terminated?  Note that each errback should return the provided failure so that execution doesn&#39;t switch back to the callback side.  See &quot;Visual Explanation&quot; in this document:</div>

<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://twistedmatrix.com/documents/current/core/howto/defer.html">http://twistedmatrix.com/documents/current/core/howto/defer.html</a></div>

<div><br></div><div>Cheers,</div><div><br>Jason</div><div><br></div></div>