Class: Concurrent::Hash
- Inherits:
-
Hash
- Object
- Hash
- Concurrent::Hash
- Includes:
- JRuby::Synchronized
- Defined in:
- lib/concurrent/hash.rb,
lib/concurrent/hash.rb,
lib/concurrent/hash.rb
Overview
A thread-safe subclass of Hash. This version locks against the object itself for every method call, ensuring only one thread can be reading or writing at a time. This includes iteration methods like ‘#each`.