I would appreciate feedback on my approach to dealing with a potential for overlapping counter updates.
I came up with two ideas -
I’m concerned that in the time between putting the counter value into a variable and updating the counter, another process could have grabbed the same value, resulting in duplication.
Could you please describe in plain English what you’re trying to accomplish? Don’t describe the implementation, but rather describe the end result.
How about using this whenever you need a new counter value?
I didn’t realize you could increment the counter and get the value. I feel really stupid right now.
I should have looked closer at the block. Sorry to waste your time.
No worries, that’s what support is for.