[Twisted-Python] Really Basic clarification on defers

Jarrod Roberson jarrod at vertigrated.com
Tue Aug 4 18:52:42 EDT 2009


Deferreds don't do what you think they do.
They don't do anything to make your code non-blocking.
They only adhere to a contract that something will eventually be returned.
The most common use of deferred's to make your code non-blocking is to use
.deferToThread()
or some other mechanism to make the long running code non-blocking, like
spawning a process.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20090804/4e08ac9b/attachment.htm 


More information about the Twisted-Python mailing list