@tauri-apps/plugin-process
Perform operations on the current process.
Functions
Section titled “Functions”exit()
Section titled “exit()”function exit(code?: number): Promise<void>;Defined in: plugins/process/guest-js/index.ts:25
Exits immediately with the given exitCode.
Example
Section titled “Example”import { exit } from '@tauri-apps/plugin-process';await exit(1);Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
code |
number |
0 |
The exit code to use. |
Returns
Section titled “Returns”A promise indicating the success or failure of the operation.
2.0.0
relaunch()
Section titled “relaunch()”function relaunch(): Promise<void>;Defined in: plugins/process/guest-js/index.ts:41
Exits the current instance of the app then relaunches it.
Example
Section titled “Example”import { relaunch } from '@tauri-apps/plugin-process';await relaunch();Returns
Section titled “Returns”A promise indicating the success or failure of the operation.
2.0.0
© 2026 Tauri Contributors. CC-BY / MIT