← All source files

V1 / 8f6c47b125e8

TextLogInputLease.cs

Lilith/Core/Logging/TextLogInputLease.cs

Changed in this version
CS
namespace Lilith.Core.Logging;

internal sealed class TextLogInputLease(Action complete) : IDisposable
{
    private int _disposed;
    public void Dispose() { if (Interlocked.Exchange(ref _disposed, 1) == 0) complete(); }
}