Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Catching Operation Failed with SetCustomProperties with Check And Swap for Properties (CAS)

$
0
0
I'm trying to use 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?

Viewing all articles
Browse latest Browse all 15755

Trending Articles