[Twisted-Python] async->sync
Glyph Lefkowitz
glyph at twistedmatrix.com
Fri Sep 23 13:37:38 MDT 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 :).
-glyph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20110923/fe723128/attachment-0001.html>
More information about the Twisted-Python
mailing list