[Twisted-Python] How to force synchronous behavior

Marcin Kasperski Marcin.Kasperski at softax.com.pl
Sat Oct 29 12:02:25 EDT 2005

>> I want to encapsulate deferreds into a function that looks like
>> synchronous when invoked.
> This is a bad idea.  Don't do it.

Depends on the purpose...

There is deferredResult function somewhere in trial (twisted testing) 
package,  deferredResult(somedeferred)  just waits  for this deferred -  
yielding control to the reactor  repeatably. This is probably what 
original poster looks for.

More information about the Twisted-Python mailing list