>
>
>
> Race conditions still happen if you (jarringly) forgot to wrap your
> "shared" object inside atomic block :P. So, maybe it's a good idea to
> only allow localStorage to be accessed inside an atomic block (even in
> workers)?
>
>
>
Yes, that was in my original suggestion.

atomic(function(shared) {...});

The callback scoped variable "shared" is the only way to access the shared
namespace.


Cheers,
Keean.

Reply via email to