As expected, the answer was pretty simple....<br><br>def returnDeferredList():<br> dl = defer.DeferredList([defer.Deferred(), defer.Deferred(), defer.Deferred()])<br> dl.addCallback(handleResult)<br> dl.addErrback(handleError)<br>
return dl<br><br>loop = task.LoopingCall(returnDeferredList)<br><br><br><div class="gmail_quote">On Sat, May 31, 2008 at 4:34 PM, J Davis <<a href="mailto:mrsalty0@gmail.com">mrsalty0@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello, <br><br>I want to group several calls to a function() that returns a deferred into a DeferredList so that I can add<br>callbacks that will fire once each call to function() has returned.<br>Furthermore, I want to arrange it so that this process repeats every X seconds.<br>
The problem I'm having is understanding how I can combine the concept of a<br>DeferredList with task.LoopingCall in this scenario. Or is that even the right approach to take?<br><br>Thanks,<br>-Jake<br>
</blockquote></div><br>