dotnet / dotnet/dotnet-api-docs

Which methods are atomic?

Open
#1,222 0 comments 0 reactions 0 assignees View on GitHub
area-System.Collections dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

It is not clear if the following section:

> All these operations are atomic and are thread-safe with regards to all other operations on the ConcurrentDictionary class. The only exceptions are the methods that accept a delegate, that is, AddOrUpdate and GetOrAdd.

applies only to the methods cited in the Remarks section or to all the methods of ConcurrentDictionary.

Speaking in general, it would be very useful to visually tag thread-safe and/or atomic methods across the entire .NET documentation.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 806c6485-9396-e6bf-2f8e-f27866115626
* Version Independent ID: 3e499bf3-fa82-0b82-5d85-84a0b3fe0515
* Content: [ConcurrentDictionary<TKey,TValue> Class (System.Collections.Concurrent)](https://docs.microsoft.com/en-US/dotnet/api/system.collections.concurrent.concurrentdictionary-2?view=netframework-4.7.2#commenti)
* Content Source: [xml/System.Collections.Concurrent/ConcurrentDictionary`2.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Collections.Concurrent/ConcurrentDictionary`2.xml)
* Product: **dotnet-api**
* GitHub Login: @mairaw
* Microsoft Alias: **mairaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.