[Twisted-Python] twisted threads: synchronous function calls

Andrew Bennetts andrew-twisted at puzzling.org
Tue Jun 20 10:25:41 EDT 2006

On Tue, Jun 20, 2006 at 03:52:28PM +0200, Markus Schiltknecht wrote:
> Now, I might have missed something, but that's sure functionality which 
> Twisted should provide.

See http://twistedmatrix.com/trac/ticket/1042

It has code for a function that does the same basic thing that yours does, but
with a bit more polish, e.g. if the result is a Deferred, it won't wake the
calling thread until the Deferred has a result, and it handles exceptions.

It just needs someone to write some tests and docs, and then it can be merged.
The function in that issue has actually been used by a few people, so it seems
to do the job.


More information about the Twisted-Python mailing list