Class AnsiRequestScheduler | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Manages AnsiEscapeSequenceRequest made to an IAnsiResponseParser. Ensures there are not 2+ outstanding requests with the same terminator, throttles request sends to prevent console becoming unresponsive and handles evicting ignored requests (no reply from terminal).
public class AnsiRequestScheduler
Inheritance
AnsiRequestScheduler
Inherited Members
Constructors
AnsiRequestScheduler(IAnsiResponseParser, Func?)
Creates a new instance.
Methods
Identifies and runs any Terminal.Gui.AnsiRequestScheduler._queuedRequests that can be sent based on the current outstanding requests of the parser.
SendOrSchedule(AnsiEscapeSequenceRequest)
Sends the request
immediately or queues it if there is already an outstanding request for the given Terminator.