dotnet / dotnet/runtime

Add System.Collections.Concurrent.ConcurrentHashSet<T>

Open
#133,985 1 comment 0 reactions 0 assignees View on GitHub
api-suggestion area-System.Collections untriaged
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

### Background and motivation

Basically reopening issue #39919.

I'm pretty sure that even a simple wrapper around `ConcurrentDictionary` would be useful. There must be many codebases out there that either implement their own `ConcurrentHashSet` or use `ConcurrentDictionary` as a workaround.

### API Proposal

#39919

### API Usage

#39919

### Alternative Designs

_No response_

### Risks

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reading the referenced issue #39919 and comparing its API proposal and usage with the existing ConcurrentDictionary workaround. This issue is complete when the ConcurrentHashSet API has an agreed design and the proposed collection is added to System.Collections.Concurrent.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.