[Twisted-Python] How to deal with deferreds across several layers of namespaces?

Idlecore xor at idlecore.com
Thu Aug 16 15:42:05 EDT 2012

I have a protocol that calls code that spans several namespaces. At
any of these namespaces there might be a deferred waiting to be
called. The protocol can be disconnected at any time and I currently
don't have a clean way to cancel all the potential deferreds from
within the protocol.
Will the protocol stick around long enough after disconnection for the
deferreds to eventually be called?
Should I create a central deferred list, at the cost of having to
access it through several layers of namespaces on other parts of my
Is there a simple way of doing this?

Pedro Azevedo

More information about the Twisted-Python mailing list