Method AddIdle | Terminal.Gui v1 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

AddIdle(Func)

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) .

Returns

Func<bool>

Remarks

Remove an idle hander by calling RemoveIdle(Func) with the token this method returns.

If the idleHandler returns false it will be removed and not called subsequently.