← All source files

V13 / 7879e8b5740b

TextLogInputLease.cs

Lilith/Core/Logging/TextLogInputLease.cs

Unchanged from the preceding 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(); }
}