Table of Contents

Interface ITimedEvents

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

Manages timers.

public interface ITimedEvents

Properties

Timeouts

Returns the next planned execution time (key - UTC ticks) for each timeout that is not actively executing.

Methods

Add(TimeSpan, Func<bool>)

Adds a timeout to the application.

Add(Timeout)

Adds a timeout to the application.

CheckTimers(out int)

Called from Terminal.Gui.App.IMainLoopDriver.EventsPending() to check if there are any outstanding timer handlers.

Remove(object)

Removes a previously scheduled timeout.

RunTimers()

Runs all timeouts that are due.

Events

Added

Invoked when a new timeout is added. To be used in the case when EndAfterFirstIteration is true.