Преглед на файлове

Change to ConcurrentQueue.

BDisp преди 9 месеца
родител
ревизия
782325f6b7
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqReq.cs

+ 3 - 1
Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqReq.cs

@@ -1,5 +1,7 @@
 #nullable enable
 
+using System.Collections.Concurrent;
+
 namespace Terminal.Gui;
 
 /// <summary>
@@ -95,5 +97,5 @@ public class EscSeqRequests
     }
 
     /// <summary>Gets the <see cref="EscSeqReqStatus"/> list.</summary>
-    public Queue<EscSeqReqStatus> Statuses { get; } = new ();
+    public ConcurrentQueue<EscSeqReqStatus> Statuses { get; } = new ();
 }