Schedule a callback to be made when the Tcl event loop goes idle. https://www.tcl-lang.org/man/tcl8.6/TclLib/DoWhenIdle.htm