using System; using System.Collections.Generic; using JetBrains.Lifetimes; namespace JetBrains.Collections.Viewable; public interface IAppendOnlyViewableConcurrentSet : IEnumerable { int Count { get; } bool Add(T value); bool Contains(T value); void View(Lifetime lifetime, Action action); } public interface IViewableConcurrentSet : IAppendOnlyViewableConcurrentSet { bool Remove(T value); }