public Entry(AsyncLockSet <TKey> owner, TKey key) { _owner = owner; _key = key; _lease = owner._lockPool.Rent(); _asyncLock = _lease.Resource; }
// Equality public bool Equals(ResourceLease <T> other) => ReferenceEquals(_releaser, other._releaser) && EqualityComparer <T> .Default.Equals(Resource, other.Resource);