https://github.com/ruby-concurrency/thread_safe
Thread-safe collections for Ruby (merged with concurrent-ruby)
https://github.com/ruby-concurrency/thread_safe
Keywords from Contributors
activejob activerecord mvc rubygems rack background-jobs rspec ruby-gem job-scheduler job-queue
Last synced: about 13 hours ago
JSON representation
Repository metadata
Thread-safe collections for Ruby (merged with concurrent-ruby)
- Host: GitHub
- URL: https://github.com/ruby-concurrency/thread_safe
- Owner: ruby-concurrency
- License: apache-2.0
- Archived: true
- Created: 2014-06-06T22:13:43.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T15:06:39.000Z (over 5 years ago)
- Last Synced: 2026-01-17T01:58:30.980Z (about 2 months ago)
- Language: Java
- Homepage: http://concurrent-ruby.com
- Size: 514 KB
- Stars: 194
- Watchers: 11
- Forks: 20
- Open Issues: 1
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
Threadsafe (Inactive, code moved to concurrent-ruby gem and repo.)
A collection of thread-safe versions of common core Ruby classes.
This code base is now part of the concurrent-ruby gem
at https://github.com/ruby-concurrency/concurrent-ruby.
The code in this repository is no longer maintained.
Installation
Add this line to your application's Gemfile:
gem 'thread_safe'
And then execute:
$ bundle
Or install it yourself as:
$ gem install thread_safe
Usage
require 'thread_safe'
sa = ThreadSafe::Array.new # supports standard Array.new forms
sh = ThreadSafe::Hash.new # supports standard Hash.new forms
ThreadSafe::Cache also exists, as a hash-like object, and should have
much better performance characteristics esp. under high concurrency than
ThreadSafe::Hash. However, ThreadSafe::Cache is not strictly semantically
equivalent to a ruby Hash -- for instance, it does not necessarily retain
ordering by insertion time as Hash does. For most uses it should do fine
though, and we recommend you consider ThreadSafe::Cache instead of
ThreadSafe::Hash for your concurrency-safe hash needs. It understands some
options when created (depending on your ruby platform) that control some of the
internals - when unsure just leave them out:
require 'thread_safe'
cache = ThreadSafe::Cache.new
Contributing
- Fork it
- Clone it (
git clone git@github.com:you/thread_safe.git) - Create your feature branch (
git checkout -b my-new-feature) - Build the jar (
rake jar) NOTE: Requires JRuby - Install dependencies (
bundle install) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Owner metadata
- Name: ruby-concurrency
- Login: ruby-concurrency
- Email: concurrent-ruby@googlegroups.com
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/5462766?v=4
- Repositories: 5
- Last ynced at: 2024-03-25T19:33:59.022Z
- Profile URL: https://github.com/ruby-concurrency
GitHub Events
Total
Last Year
Committers metadata
Last synced: 3 days ago
Total Commits: 212
Total Committers: 18
Avg Commits per committer: 11.778
Development Distribution Score (DDS): 0.358
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| thedarkone | t****2@g****m | 136 |
| Charles Oliver Nutter | h****s@h****m | 21 |
| kares | s****f@k****g | 12 |
| Jerry D'Antonio | s****r@g****m | 10 |
| Erik Michaels-Ober | s****k@g****m | 9 |
| Ken Dreyer | k****r@k****m | 5 |
| Ilya Lavrov | d****k@g****m | 4 |
| renan-ranelli | r****i@g****m | 3 |
| Dmitry Ratnikov | r****v@g****m | 2 |
| Uwe Kubosch | u****e@k****o | 2 |
| Ian Unruh | i****h@g****m | 1 |
| Jonathan Rochkind | j****n@d****t | 1 |
| Jun Aruga | j****a@r****m | 1 |
| Keith Bennett | k****t@g****m | 1 |
| Martin Schürrer | m****n@s****g | 1 |
| Petr Chalupa | k****t@p****h | 1 |
| Nathan Sutton | n****e@z****m | 1 |
| Tim Bellefleur | n****n@p****a | 1 |
Committer domains:
- phoebus.ca: 1
- zencoder.com: 1
- pitr.ch: 1
- schuerrer.org: 1
- redhat.com: 1
- dnil.net: 1
- kubosch.no: 1
- google.com: 1
- ktdreyer.com: 1
- kares.org: 1
- headius.com: 1
Issue and Pull Request metadata
Last synced: 6 months ago
Total issues: 13
Total pull requests: 20
Average time to close issues: 3 months
Average time to close pull requests: 4 days
Total issue authors: 12
Total pull request authors: 11
Average comments per issue: 3.69
Average comments per pull request: 2.35
Merged pull request: 16
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- jdantonio (2)
- soupmatt (1)
- etehtsea (1)
- donv (1)
- ericproulx (1)
- headius (1)
- jkl1337 (1)
- dzjuck (1)
- lenage (1)
- graaff (1)
- solnic (1)
- samdai (1)
Top Pull Request Authors
- dzjuck (4)
- ktdreyer (3)
- donv (2)
- rranelli (2)
- jdantonio (2)
- nomoon (2)
- keithrbennett (1)
- junaruga (1)
- gogainda (1)
- naofumi-fujii (1)
- manuelmeurer (1)
Top Issue Labels
- enhancement (3)
- bug (1)
- help wanted (1)
- in progress (1)
Top Pull Request Labels
- enhancement (1)
Package metadata
- Total packages: 14
-
Total downloads:
- rubygems: 1,183,685,746 total
- Total docker downloads: 4,206,656,790
- Total dependent packages: 160 (may contain duplicates)
- Total dependent repositories: 1,055,819 (may contain duplicates)
- Total versions: 73
- Total maintainers: 4
gem.coop: thread_safe
A collection of data structures and utilities to make thread-safe programming in Ruby easier
- Homepage: https://github.com/ruby-concurrency/thread_safe
- Documentation: http://www.rubydoc.info/gems/thread_safe/
- Licenses: Apache-2.0
- Latest release: 0.3.6 (published about 9 years ago)
- Last Synced: 2026-03-01T06:33:07.201Z (3 days ago)
- Versions: 24
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 591,833,375 Total
- Docker Downloads: 2,103,328,395
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Downloads: 0.032%
- Docker downloads count: 0.073%
- Average: 1.694%
- Stargazers count: 4.122%
- Forks count: 5.937%
- Maintainers (4)
rubygems.org: thread_safe
A collection of data structures and utilities to make thread-safe programming in Ruby easier
- Homepage: https://github.com/ruby-concurrency/thread_safe
- Documentation: http://www.rubydoc.info/gems/thread_safe/
- Licenses: Apache-2.0
- Latest release: 0.3.6 (published about 9 years ago)
- Last Synced: 2026-03-01T16:03:08.933Z (2 days ago)
- Versions: 24
- Dependent Packages: 158
- Dependent Repositories: 1,055,818
- Downloads: 591,852,371 Total
- Docker Downloads: 2,103,328,395
-
Rankings:
- Dependent repos count: 0.004%
- Downloads: 0.021%
- Docker downloads count: 0.112%
- Dependent packages count: 0.219%
- Average: 1.745%
- Stargazers count: 4.05%
- Forks count: 6.061%
- Maintainers (4)
proxy.golang.org: github.com/ruby-concurrency/thread_safe
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ruby-concurrency/thread_safe#section-documentation
- Licenses: apache-2.0
- Latest release: v0.3.6 (published about 9 years ago)
- Last Synced: 2026-02-27T19:43:53.675Z (4 days ago)
- Versions: 14
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Stargazers count: 3.661%
- Forks count: 4.867%
- Average: 7.226%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
conda-forge.org: rb-thread_safe
- Homepage: https://rubygems.org/gems/thread_safe
- Licenses: MIT
- Latest release: 0.3.6 (published over 6 years ago)
- Last Synced: 2026-02-03T12:11:47.220Z (29 days ago)
- Versions: 1
- Dependent Packages: 2
- Dependent Repositories: 1
-
Rankings:
- Dependent packages count: 19.597%
- Dependent repos count: 24.218%
- Stargazers count: 26.349%
- Average: 27.025%
- Forks count: 37.936%
ubuntu-23.10: ruby-thread-safe
- Homepage: https://github.com/ruby-concurrency/thread_safe
- Licenses:
- Latest release: 0.3.6-1 (published 18 days ago)
- Last Synced: 2026-02-13T18:34:23.598Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-10: ruby-thread-safe
- Homepage: https://github.com/ruby-concurrency/thread_safe
- Documentation: https://packages.debian.org/buster/ruby-thread-safe
- Licenses:
- Latest release: 0.3.6-1 (published 21 days ago)
- Last Synced: 2026-02-13T04:26:35.127Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.04: ruby-thread-safe
- Homepage: https://github.com/ruby-concurrency/thread_safe
- Licenses:
- Latest release: 0.3.6-1 (published 21 days ago)
- Last Synced: 2026-02-11T06:51:19.765Z (21 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-20.04: ruby-thread-safe
- Homepage: https://github.com/ruby-concurrency/thread_safe
- Licenses:
- Latest release: 0.3.6-1 (published 19 days ago)
- Last Synced: 2026-02-13T07:24:13.149Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-11: ruby-thread-safe
- Homepage: https://github.com/ruby-concurrency/thread_safe
- Documentation: https://packages.debian.org/bullseye/ruby-thread-safe
- Licenses:
- Latest release: 0.3.6-1 (published 21 days ago)
- Last Synced: 2026-02-13T08:25:42.129Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-22.04: ruby-thread-safe
- Homepage: https://github.com/ruby-concurrency/thread_safe
- Licenses:
- Latest release: 0.3.6-1 (published 19 days ago)
- Last Synced: 2026-02-13T13:27:33.968Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: ruby-thread-safe
- Homepage: https://github.com/ruby-concurrency/thread_safe
- Documentation: https://packages.debian.org/bookworm/ruby-thread-safe
- Licenses:
- Latest release: 0.3.6-1 (published 19 days ago)
- Last Synced: 2026-02-12T23:42:46.802Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-13: ruby-thread-safe
- Homepage: https://github.com/ruby-concurrency/thread_safe
- Documentation: https://packages.debian.org/trixie/ruby-thread-safe
- Licenses:
- Latest release: 0.3.6-1 (published 20 days ago)
- Last Synced: 2026-02-13T13:20:21.531Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- countloc ~> 0.4.0 development
- coveralls ~> 0.7.11 development
- inch ~> 0.5.10 development
- redcarpet ~> 3.2.2 development
- rspec ~> 3.2.0 development
- simplecov ~> 0.9.2 development
- term-ansicolor ~> 1.3.2 development
- tins ~> 1.6.0 development
- yard ~> 0.8.7.6 development
- atomic = 1.1.16 development
- rake < 12.0 development
- rspec ~> 3.2 development
Score: 30.57144283487386