Class TimedEvents | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Handles timeouts and idles
public class TimedEvents : ITimedEvents
Inheritance
TimedEvents
Implements
Inherited Members
Properties
Gets a copy of the list of all idle handlers.
Gets the list of all timeouts sorted by the TimeSpan time ticks. A shorter limit time can be added at the end, but it will be called before an earlier addition that has a longer limit time.
Methods
Adds specified idle handler function to main iteration processing. The handler function will be called once per iteration of the main loop after other events have been handled.
Adds a timeout to the MainLoop.
CheckTimersAndIdleHandlers(out int)
Called from Terminal.Gui.IMainLoopDriver.EventsPending() to check if there are any outstanding timers or idle handlers.
Runs all idle hooks
Runs all timeouts that are due
Removes an idle handler added with AddIdle(Func) from processing.
Removes a previously scheduled timeout
Events
Invoked when a new timeout is added. To be used in the case whenEndAfterFirstIteration is true.