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:
parent
6a3ab5d93a
commit
c2234d285a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue