Table of Contents

Interface ITimedEvents

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

Manages timers.

public interface ITimedEvents

Properties

Timeouts

Returns a snapshot containing the next planned execution timestamp, in 100-nanosecond units, for each timeout that is not actively executing. Mutating the returned list does not change the scheduled timeouts.

Methods

Add(TimeSpan, Func<bool>)

Adds a timeout to the application.

Add(Timeout)

Adds a timeout to the application.

GetTimeout(object)

Gets the configured interval for a queued timeout occurrence associated with the specified token.

Remove(object)

Cancels all timeout occurrences associated with a previously returned token.

RunTimers()

Runs timeouts that are due.

StopAll()

Stops and removes all timed events.

Events

Added

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