[Twisted-Python] understanding deferreds

Michael P. Soulier msoulier at digitaltorque.ca
Thu Jan 28 17:28:38 EST 2010


I've been reading up on this


I'm a bit confused as to the "visual explanation". It seems like if you have a
single callback and errback, that if the errback wants to swallow the error,
the callback will not be called at all, since deferred processing will look
for the second callback at that point by the diagram.

So, right now I'm calling my own callback from the errback if I want to
swallow the error. Is there a better way?

Michael P. Soulier <msoulier at digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20100128/8f61cf29/attachment.pgp 

More information about the Twisted-Python mailing list