ConcurrentList<T>
Provides very basic concurrent storage. This class is not high-performance.
Type parameters:
| T |
Properties
Methods
Apply<TOut>
#Apply a delegate to the internal list. I hope you know how to write threadsafe code before you use this method.
Apply
#Apply a delegate to the internal list. I hope you know how to write threadsafe code before you use this method.
Contains
#Gets whether this list contains the given item.
Parameters:
| item (T) | Item to search for. |
Returns: True if the item exists within the list, false if otherwise.
GetEnumerator
#Enumerate over all items in the concurrent list. This enumerator operates on a copy of the internal data and thus will not reflect changes made to the collection, but also won't throw a synchronisation exception. The enumerator itself does not run from a locked section.
Remove
#Remove an item from this collection.
Parameters:
| item (T) | Item to remove. |
Returns: True if item was found and removed, false if otherwise.