counter_safe

Thread safe counters:

Based on and with much thanks to: https://itnext.io/comparing-crystals-concurrency-with-that-of-go-part-ii-89049701b1a5

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      counter_safe:
        github: your-github-user/counter_safe
  2. Run shards install ... or shards install --ignore-crystal-version

Usage

require "counter_safe"

Example Usage:

See also API doc's at: https://drhuffman12.github.io/counter_safe

Contributing

  1. Fork it (https://github.com/your-github-user/counter_safe/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors