Thanks for your reply.

You're right that only one thread is running in a browser.

But on the other hand, we could also use ThreadLocal pattern to share
some data among multiple different method invocations.

In my opinion, ThreadLocal pattern has two basic different usages:

1. Horizontally, it has each thread having its own copy of data

2. Vertically, it also has method invocations in thread sharing data

So it will be helpful that GWT supports ThreadLocal pattern for the
second usage

BR, cai

On Jan 10, 2:17 am, Lothar Kimmeringer <[email protected]> wrote:
> cobracbh schrieb:
>
> > Is any possible that GWT's Java2JavaScript could compile ThreadLocal
> > in future ?
>
> To what? Inside the browser, there is only one Thread running.
>
> Regards, Lothar
--~--~---------~--~----~------------~-------~--~----~
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