and return control to the main loop after 0.1 sec from the idle callback; convert callback to being able to store its state and continue from the middle. svn: r5366