Skip to main content
Log in

Mojo function

exit

exit()

Exits from Mojo. Unlike the Python implementation this does not raise an exception to exit.

exit[intable: Intable](code: intable)

Exits from Mojo. Unlike the Python implementation this does not raise an exception to exit.

Parameters:

  • intable (Intable): The type of the exit code.

Args:

  • code (intable): The exit code.