On 1 Mar, 09:52 pm, bee...@gmail.com wrote:
>Thanks for the answer!
>
>I was hoping to avoid having to put something like AMP in place, 
>because it looked a bit overkill for my case.
>I think I actually found a way :-)

Unfortunately, it looks like the code that you shared will only work 
accidentally (if at all).  You cannot use Twisted APIs except in the 
reactor thread.  You will at least need to add in some code to send data 
back to the reactor thread before you use Twisted APIs (such as 
`Deferred.callback`).

Jean-Paul

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to