On 5 Jul, 08:35 pm, kebi...@gmail.com wrote:
calling reactor.callLater within qt4reactor in an attempt to async non
webkit work but not seeing expected behavior.  Webkit locks while the
callLater function executes.

`callLater` does not make a blocking function into a non-blocking one. It just calls a function after a specified delay. If the function blocks, then the reactor will block when it gets around to calling it.

If you need to call blocking APIs you may need to call them in a separate thread (Twisted includes a threadpool that can help you with this) or a separate process (Twisted has some APIs for launching and interacting with other processes, too). Of course, the ideal solution is often to find a non-blocking equivalent to the blocking API and use that instead (for example, I know that txaws is a project that exists - perhaps it can do the things to S3 that you want to do).

Jean-Paul

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

Reply via email to