[Twisted-Python] async->sync

Glyph Lefkowitz glyph at twistedmatrix.com
Fri Sep 23 15:37:38 EDT 2011

On Sep 23, 2011, at 3:33 PM, gary jefferson wrote:

> So, am I missing some other more elegant solution? Is there really no
> way to turn async, deferred-returning twisted code into synchronous
> result-returning code, via clever use of wrappers etc?

Run the reactor in a background thread and do .blockingCallFromThread().

If you can't run a background thread, then you're probably out of luck - sorry :).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20110923/fe723128/attachment.htm 

More information about the Twisted-Python mailing list