Method AddIdle
AddIdle(Func<bool>)
Adds specified idle handler function to mainloop processing. The handler function will be called once per iteration of the main loop after other events have been handled.
public Func<bool> AddIdle(Func<bool> idleHandler)
Parameters
idleHandler
Func<bool>Token that can be used to remove the idle handler with RemoveIdle(Func<bool>) .
Returns
Remarks
Remove an idle hander by calling RemoveIdle(Func<bool>) with the token this method returns.
If the idleHandler
returns false
it will be removed and not called subsequently.