refactor(console): use System.Threading.Lock for the pump gate

C# 13+ dedicated lock type; the existing lock (_gate) statements lower to
Lock.EnterScope() unchanged.
This commit is contained in:
Kamron Batman 2026-07-15 23:39:05 -07:00
parent 6a3ab5d93a
commit c2234d285a

View file

@ -19,7 +19,7 @@ internal sealed class ConsoleInputPump
private readonly TextReader _input;
private readonly Func<string, Action<string>> _lookup;
private readonly Server.Logging.ILogger _logger;
private readonly object _gate = new();
private readonly Lock _gate = new();
private readonly AutoResetEvent _promptDelivered = new(false);
private bool _promptPending;