← All source files

V8 / 34b774036cd1

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(); }
}