[Twisted-Python] callFromThread with return

Egor Cheshkov egor at iplus.ru
Wed Sep 17 04:58:29 EDT 2003

Hello! Suppose I run task in worker thread (e.g. database transaction) 
and I need to do some IO (PB call) and get the result from it during 
transaction. Since I run not in reactor's thread it's ok to block and 
wait for the result. I know that there is callFromThread but it never 
return any result. Is it possible to implement something like 
callFromThread that can block, wait for result and return it?

Thanks in advance,

More information about the Twisted-Python mailing list