Skip to main content

Functions

exit#

exit(exitCode?: number): Promise<void>

Exits immediately with the given exitCode.

Parameters:#

NameTypeDefault valueDescription
exitCodenumber0The exit code to use.

Returns: Promise<void>

A promise indicating the success or failure of the operation.

Defined in: process.ts:18


relaunch#

relaunch(): Promise<void>

Exits the current instance of the app then relaunches it.

Returns: Promise<void>

A promise indicating the success or failure of the operation.

Defined in: process.ts:33