[Twisted-Python] blocking code in object constructors

Egor Cheshkov egor at iplus.ru
Fri Jun 27 05:40:32 EDT 2003


Hi,
I need to do some blocking stuff in object constructor. However constructors 
can't return deferreds. The solution I see is to put all blocking 
initialization to some method and use factory to generate objects. Factory 
will return deferred wich will be called back when object initialization is 
complete. Is there Twisted Standard way to do such things?

-- 
Egor Cheshkov 






More information about the Twisted-Python mailing list