V10 / 66cebf3528e0
SemaphoreLease.cs
Lilith/Core/Extensions/SemaphoreLease.cs
Unchanged from the preceding versionCS
namespace Lilith.Core.Extensions;
internal sealed class SemaphoreLease(SemaphoreSlim gate) : IDisposable
{
private SemaphoreSlim? _gate = gate;
public void Dispose() => Interlocked.Exchange(ref _gate, null)?.Release();
}