Class: Concurrent::Array — Concurrent

Class List Method List File List

# Class: Concurrent::Array

Inherits:
  Array
  - Object
  - Array
  - Concurrent::Array
  show all
Includes:
  JRuby::Synchronized
Defined in:
  lib/concurrent/array.rb,
  lib/concurrent/array.rb,
  lib/concurrent/array.rb

## Overview

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`.

See Also:

- Ruby standard library `Array`