yr.quit

quit() → NoReturn

End 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:

python
import yera as yr

if not yr.confirm("Would you like to play another round?"):
    yr.quit()