[Twisted-Python] ANN: deferred howto/tutorial

Stephen Waterbury golux at comcast.net
Sat Oct 23 17:44:35 EDT 2004


Mary Gardiner wrote:
> On Sat, Oct 23, 2004, Andrew Bennetts wrote:
> 
>>The obvious disadvantage compared to your style is the loss of the
>>direct visual association of which callbacks relate to which
>>deferreds.  I'd be moderately interested in hearing how other people
>>cope with that
> 
> I find it's a problem when you start chaining deferreds by returning
> deferred from callbacks: not so much that it's difficult to find out
> where the callback is added, but that there's no visual representation
> that corresponds to the "nesting" of the callbacks.

I like to think of it as the asynchronous form of
"pipes and filters", so chaining deferreds seems quite
logical to me.

Steve




More information about the Twisted-Python mailing list