pub fn terminate()
Terminates the currently running main loop.
This function does nothing if the main loop is not running. This function does nothing with the “web” feature.