[Twisted-Python] Deferred execution, timeouts, and unhandled exceptions

Andrew Bennetts andrew-twisted at puzzling.org
Sat Jan 18 07:26:38 EST 2003

On Fri, Jan 17, 2003 at 07:04:01PM -0500, Bob Ippolito wrote:
> I've noticed that there isn't really a good/standard way to do timeouts 
> (without bad things happening) or cancel deferreds in Twisted [without 
> subclassing everything you use, which isn't good in my book].

I've glanced at your code and log, but it's not immediately clear to me what
the problem is...

For timeouts, what's wrong with the Deferred.setTimeout method?

For cancelling a Deferred, what's wrong with

There's no standard "CancelledError" exception in Twisted, admittedly, but
that could be easily fixed.


More information about the Twisted-Python mailing list