@zturnlibs/ztron-api


process

Variables

process

const process: object

Defined in: process.ts:21

Type Declaration

exit

exit: (code) => Promise<void>

Terminates the app with an optional exit code.

Parameters
code?

number = 0

Returns

Promise<void>

relaunch

relaunch: () => Promise<void>

Restarts the app. Best-effort: the host respawns itself detached and the current process terminates (in a packaged app the launcher respawns the full host + backend pair).

Returns

Promise<void>

Functions

exit()

exit(code?): Promise<void>

Defined in: process.ts:8

Terminates the app with an optional exit code.

Parameters

code?

number = 0

Returns

Promise<void>


relaunch()

relaunch(): Promise<void>

Defined in: process.ts:17

Restarts the app. Best-effort: the host respawns itself detached and the current process terminates (in a packaged app the launcher respawns the full host + backend pair).

Returns

Promise<void>