On October 1, 2014 at 4:18:52 PM, Scott Blum ([email protected]) wrote:
4) Meanwhile user computes  A -> A'.

5) User calls sharedValue.trySetValue(A').  This succeeds because sharedValue 
thinks it's up to date; it has no idea that the user is setting a value based 
on old data.
Well, I’d call that a user error. SharedValue is not an atomic value (you found 
that recipe already). It’s meant to get updated in the background as a kind of 
cache. It can be thought of as a cached node that has optimistic locking 
semantics for updating.

-JZ

Reply via email to