[Twisted-Python] Really Basic clarification on defers

Jarrod Roberson jarrod at vertigrated.com
Tue Aug 4 16:52:42 MDT 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: </pipermail/twisted-python/attachments/20090804/4e08ac9b/attachment.html>


More information about the Twisted-Python mailing list