A version of CollectionPool<T0,T1> for HashSets.
using UnityEngine.Pool;
public class Example { void GetPooled() { // Get a pooled instance var instance = HashSetPool<int>.Get();
// Use the HashSet
// Return it back to the pool HashSetPool<int>.Release(instance); } }