Class | ThreadSafe::Array |
In: |
lib/thread_safe.rb
|
Parent: | ::Array |
A thread-safe subclass of Array. 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.