Table of Contents

Class AnsiRequestScheduler

Namespace
Terminal.Gui
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<DateTime>?)

Creates a new instance.

Methods

RunSchedule(bool)

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 AnsiEscapeSequenceRequest.Terminator.