You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lot of the use cases I'm working on involve counting things; active requests, errors, values in HTTP headers. I have implemented concurrency-safe counters on top of the shared state primitives using the CAS feature, but this seems relatively inefficient and much more error prone.
It would be amazing if we could have atomic counters that could be incremented and decremented safely and simply from callbacks.