yr.quit
quit() → NoReturnEnd the current app run immediately as a user-initiated quit.
Distinct from exit: signals that the
user chose to stop rather than the app completing or failing.
Raises
AppQuit
Always. The outermost app catches it and ends the run.
Examples
Stop an app when the user chooses not to continue:
import yera as yr
if not yr.confirm("Would you like to play another round?"):
yr.quit()