ConcurrentHashSet Save

A ConcurrentHashSet implementation

Project README

ConcurrentHashSet

NuGet NuGet license

A ConcurrentHashSet implementation based on .NET's ConcurrentDictionary

This implementation supports basic operations per item without HashSet's set operations as they make less sense in concurrent scenarios IMO:

var concurrentHashSet =
    new ConcurrentHashSet<string>(
        new[]
        {
            "hamster",
            "HAMster",
            "bar",
        },
        StringComparer.OrdinalIgnoreCase);

concurrentHashSet.TryRemove("foo");
if (concurrentHashSet.Contains("BAR"))
{
    Console.WriteLine(concurrentHashSet.Count);
}
Open Source Agenda is not affiliated with "ConcurrentHashSet" Project. README Source: i3arnon/ConcurrentHashSet
Stars
119
Open Issues
4
Last Commit
2 years ago

Open Source Agenda Badge

Open Source Agenda Rating