[Twisted-Python] Waiting on a Deferred

Saketh saketh.bhamidipati at gmail.com
Tue Jul 22 19:10:19 EDT 2008


It works! It never occurred to me that Twisted might unwrap the Deferred
automatically.

Thank you for your prompt replies!

On Tue, Jul 22, 2008 at 11:31 AM, Christopher Armstrong <
radix at twistedmatrix.com> wrote:

> 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/
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20080722/b8744fdb/attachment.htm 


More information about the Twisted-Python mailing list