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...
More information about the Twisted-Python