Class ConcurrentCollection<V>

A special collection type that can be modified while being iterated. Useful for implementing event listener lists.

Can only add at the end of the collection, but can remove from anywhere in the collection (while iterating). Preserves insertion order.

Type Parameters

  • V

Constructors

Properties

Accessors

Methods

Constructors

Properties

iterators: Set<ConcurrentCollectionIterator> = ...
values: V[] = []

Accessors

Methods