[Twisted-Python] How to force synchronous behavior

glyph at divmod.com glyph at divmod.com
Sat Oct 29 15:59:26 EDT 2005



On Sat, 29 Oct 2005 18:02:25 +0200, Marcin Kasperski <marcin.kasperski at softax.com.pl> wrote:

>>>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...

Nope.  Unequivocally, a bad idea.  The function you mentioned (whose name I will not repeat, even to quote) is SEVERELY deprecated.  Don't use it.

The poster sounds new to Twisted, which means that they have at least 2 years worth of regular asynchronous programming ahead of them before they can make effective and judicious use of shortcuts like deferredGenerator.




More information about the Twisted-Python mailing list