I'm trying to use
It seems to work great (that is properties only update when they should).
However, I cannot see how to handle the CAS update failed situation - that is be notified so I can act on the failure (show in the console). Where do I implement an
Or am I supposed to simply wait a second or so and check if the update was successful on the cached values?
SetCustomProperties
with Check And Swap for Properties (CAS) to avoid race conditions (concurrency problems).It seems to work great (that is properties only update when they should).
However, I cannot see how to handle the CAS update failed situation - that is be notified so I can act on the failure (show in the console). Where do I implement an
OnOperationFailed
, method or similar? Or do I need to somehow use the webForward
hook to get this?Or am I supposed to simply wait a second or so and check if the update was successful on the cached values?