On 06/17/2010 05:24 PM, Derrell Lipman wrote: > On Thu, Jun 17, 2010 at 11:15, alexander.volik > <[email protected] <mailto:[email protected]>> wrote: > > > Hi! > I have to load some data from database using RPC methods in the > initialization method of my program. Now my init method already has 6 > synchronous RPC requests and it takes too many time for its execution. > I want to use async RPC requests but there is a question: how can I > determine that all the requests had executed? > > > Each request has an id field. You can track the id as you issue each > request (add each to a map), and mark each as completed as you get the > results (delete it from the map). When the map is empty, all requests > have completed.
If you want a more elaborate interface to such functionality, you might consider using qx.ui.progressive.Progressive, which e.g. gives you events you can listen for. (Right, Derrell?!) T. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
