Class: Concurrent::Hash

Inherits:
HashImplementation show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby/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`, which takes the lock repeatedly when reading an item.