mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
This is no longer required
This commit is contained in:
@@ -30,20 +30,12 @@ using System.Threading;
|
||||
|
||||
namespace ArchiSteamFarm {
|
||||
internal sealed class ConcurrentHashSet<T> : ICollection<T>, IDisposable {
|
||||
private readonly HashSet<T> HashSet;
|
||||
private readonly HashSet<T> HashSet = new HashSet<T>();
|
||||
private readonly ReaderWriterLockSlim Lock = new ReaderWriterLockSlim();
|
||||
|
||||
public bool IsReadOnly => false;
|
||||
public IEnumerator<T> GetEnumerator() => new ConcurrentEnumerator<T>(HashSet, Lock);
|
||||
|
||||
internal ConcurrentHashSet() {
|
||||
HashSet = new HashSet<T>();
|
||||
}
|
||||
|
||||
internal ConcurrentHashSet(IEnumerable<T> collection) {
|
||||
HashSet = new HashSet<T>(collection);
|
||||
}
|
||||
|
||||
public int Count {
|
||||
get {
|
||||
Lock.EnterReadLock();
|
||||
|
||||
Reference in New Issue
Block a user