Hello<br><br>Twisted is great, but how cant i emulate sleep behaviour in syested. I know that exists callLater, but how to use it in yield scenario, like here:<br><br>@inlineCallbacks<br>def work(self):<br> l_attempts = 0;<br>
<br> while l_attemps < 3:<br> try:<br> resp = yield <some twisted call><br> break;<br><br> except:<br> yield sleep(3);<br> l_attempts +=1<br><br> else:<br>
log.err("cant communicate");<br><br><br>Here i make 3 attempts to connect busy service, with pause 3 seconds between attempts. How cant i implement this in twisted <br>