You could create a composite async request object.  Its constructor
would take a list of special async requests, and it would execute them
in order.  They would have to be special as you would need some way to
attach listeners to them to know when each is done (the base interface
doesn't provide for such a thing).  As it was notified of each
success, it could kick off the next.  Alternatively, you might try
kicking them all off, and whenever you get a pokeback from one of your
children you could see if they are all done.

-Ben

On Feb 26, 2:43 pm, andi <[email protected]> wrote:
> Hi all,
>
> I'm looking for a solution how to transport a method reference. Usecase is
> to wrap some async method calls and only have one success handler after all
> are doen.
>
> E.g. I want something like this (which would easily possible in JS):
>
> Requestor req = new Requestor();
> req.add(Foo.method, param, param);
> req.add(Bar.method, param);
> req.do(new SimpleMethodCallback<JSONValue>() {
>     @Override
>     public void onSuccess() {
>     // ...
>     }
>
> });
>
> Someone has a solution how to accomplish this?
>
> Thanks in advance,
> Andi

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/google-web-toolkit?hl=en.

Reply via email to