2
0
Эх сурвалжийг харах

Change to ConcurrentQueue.

BDisp 9 сар өмнө
parent
commit
782325f6b7

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

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