exit

abstract fun exit(exitCode: Double = definedExternally)(source)

Exits immediately with exitCode. exitCode defaults to 0.

All windows will be closed immediately without asking the user, and the before-quit and will-quit events will not be emitted.