[Twisted-Python] Waiting on a Deferred

Christopher Armstrong radix at twistedmatrix.com
Tue Jul 22 14:31:39 EDT 2008


On Tue, Jul 22, 2008 at 2:17 PM, Saketh <saketh.bhamidipati at gmail.com> wrote:
> Hello everyone,
>
> Is it possible to call asynchronous methods synchronously?
>
> I'm asking because I have an xmlrpc.XMLRPC server which distributes a
> calculation across several remote servers, collects the results in a
> DeferredList, and wraps it all inside an xmlrpc_something method. Thus, it
> needs to return the result to a web browser synchronously.

Everything after "thus" here is incorrect. You can return Deferreds
from xmlrpc_something methods.


-- 
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/




More information about the Twisted-Python mailing list