Class: Contender::CopyOnWriteArray

Inherits:
Object
  • Object
show all
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.

Method Summary

Methods included from CopyOnWriteStructure

included, #initialize