@tauri-apps/plugin-process
이 콘텐츠는 아직 번역되지 않았습니다.
Perform operations on the current process.
Functions
Section titled “Functions”exit()
Section titled “exit()”function exit(code): Promise<void>Exits immediately with the given exitCode.
Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
code | number | 0 | The exit code to use. |
Returns
Section titled “Returns”Promise<void>
A promise indicating the success or failure of the operation.
Example
Section titled “Example”import { exit } from '@tauri-apps/plugin-process';await exit(1);2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/process/guest-js/index.ts#L25
relaunch()
Section titled “relaunch()”function relaunch(): Promise<void>Exits the current instance of the app then relaunches it.
Returns
Section titled “Returns”Promise<void>
A promise indicating the success or failure of the operation.
Example
Section titled “Example”import { relaunch } from '@tauri-apps/plugin-process';await relaunch();2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/process/guest-js/index.ts#L41
© 2026 Tauri Contributors. CC-BY / MIT