I have been using Twisted for years but only recently began to use
inlineCallbacks (couldn't give up Python 2.4 support until recently). This
simple asynch. sleep function is fantastic. Just today I used to it with
inlineCallbacks to dramatically clean up some complex deferred logic.
Thanks,
Bri
Hey guys,
Thanks for your responses.
Nathan your pointer to the "deferToThread" really helped.
I finally did this:
ran my external script in a thread using:
threads.deferToThread(test.main)
and started a function called status_check in another thread
threads.deferToThread(self.check_status)