Class TimedEvents
Handles timeouts and idles
public class TimedEvents : ITimedEvents
- Inheritance
-
TimedEvents
- Implements
- Inherited Members
Properties
- IdleHandlers
Gets a copy of the list of all idle handlers.
- Timeouts
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
- AddIdle(Func<bool>)
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.
- AddTimeout(TimeSpan, Func<bool>)
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.
- LockAndRunIdles()
Runs all idle hooks
- LockAndRunTimers()
Runs all timeouts that are due
- RemoveIdle(Func<bool>)
Removes an idle handler added with AddIdle(Func<bool>) from processing.
- RemoveTimeout(object)
Removes a previously scheduled timeout
Events
- TimeoutAdded
Invoked when a new timeout is added. To be used in the case when EndAfterFirstIteration is true.