[Twisted-Python] blocking code in object constructors

Egor Cheshkov egor at iplus.ru
Fri Jun 27 03:40:32 MDT 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