On 18 Jun, 04:47, "Leo Soto M." <[EMAIL PROTECTED]> wrote: > On 6/11/07, GK <[EMAIL PROTECTED]> wrote: > > > Your SimpleTest module accummulates a list of test results, then > > displays the result, right? And test_MochiKit-Async uses a combination > > of synchronous and asynchronous calls to add test results to this > > list. Plus waitForExplicitFinish() and finish() to hold off > > completion until the Deferreds have fired. > > Right. > > > This does seem simpler than my first thought. But this module has > > only one truly asynchronous callback that I can see: so if there are > > several asynchronous calls, some mechanism is needed to hold off > > completion untill all are done. > > Sorry if my reply came too late, but DeferredList can help here: > > var allDeferreds = new DeferredList([d1, d2, ...]); > allDeferreds.addCallback(SimpleTest.finish);
Got it, thanks! #g --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
