On Thu, Oct 15, 2009 at 15:48, AndiMullaraj <[email protected]> wrote: > > There are cases when blocking calls to server are indispensable > (agreed, assync calls are the way to go for 99% of the cases). > > I scanned the client API and cannot find a way on how to do this. If > not through a direct API call, is there a way on how to achieve this? > (Like having a wait/process_events loop going until the response comes > from the server).
No. Most browsers are single threaded. They can't send an HTTP request or parse an HTTP response while they are also executing JavaScript. So GWT assumes that is the case and requires you to return control to the browser. Which means blocking calls are not supported. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
