Skip to content

Feature request: atomic counters #85

Description

@dasch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions