Re: [Twisted-Python] sleeping in inlineCallbacks

2009-10-28 Thread Brian Granger
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

Re: [Twisted-Python] Regarding Twisted Matrix

2009-10-28 Thread naman jain
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)