Class: Contender::CopyOnWriteArray
- Inherits:
-
Object
- Object
- Contender::CopyOnWriteArray
- Includes:
- Comparable, CopyOnWriteStructure, Enumerable
- Defined in:
- lib/contender/copy_on_write_array.rb
Overview
Array that uses copy-on-write to guarantee thread safety
Use this when read throughput is the primary requirement; write operations will always be slow due to the need to create a shallow copy of the array to perform operations on.