On Tue, Dec 15, 2009 at 9:50 AM, Martin Kreichgauer <
[email protected]> wrote:
> that this is not particularly good design, but rewriting the client
> code in a way that the requests are performed asynchronously is
> currently not an option. :-/ Is there any way to make
>
I'm not aware of a way to make that method synchronous. Adapting the code
to work asynchronously (which usually is pretty easy) seems to me to be the
clear and correct thing to do here. If this isn't an option because you're
not sure how best to approach it, let us know where you're stuck and someone
can suggest a solution for you.
function example() {
var x = someFunction();
var result = neededSynchronousFunction(); // this is what you need to
work
doSomethingElse(x, result);
}
function example2() {
var x = someFunction();
asynchronousFunction(function(result) {
doSomethingElse(x, result);
});
}
David
--
You received this message because you are subscribed to the Google Groups
"Google Wave API" 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-wave-api?hl=en.