Skip to content

ElectronApp.exit method

ElectronApp › exit

Unofficial

Exits immediately with exitCode. All windows are closed immediately without asking the user, and the before-quit and will-quit events are not emitted.

Signature:

exit(exitCode?: number | undefined): void

Parameters:

Parameter Type Description
exitCode? number | undefined The exit code.

Returns: void