[Twisted-Python] Non-blocking webserver - what am I doing wrong?

Dave Gray dgray at omniti.com
Wed Apr 27 11:31:29 EDT 2005

>  Deferreds don't re-arrange processing, or make functions asynchronous, 
> or anything like that.  They only hook a result up with one or more 
> functions for handling the result.  The result is often only available 
> after the callback functions have been defined and added to the 
> Deferred, but if it is available beforehand, nothing significant really 
> changes.
>  Put another way: if a Deferred has a callback, when it is given a 
> result, the callback is invoked immediately; if a Deferred has a result, 
> when it is given a callback, the callback is invoked immediately.

Gotcha, thanks.

More information about the Twisted-Python mailing list