@tauri-apps/plugin-process
Perform operations on the current process.
function exit(code): Promise<void>
Exits immediately with the given exitCode
.
Parameter | Type | Default value | Description |
---|---|---|---|
code | number | 0 | The exit code to use. |
Promise
<void
>
A promise indicating the success or failure of the operation.
import { exit } from '@tauri-apps/plugin-process';await exit(1);
2.0.0
Source: undefined
function relaunch(): Promise<void>
Exits the current instance of the app then relaunches it.
Promise
<void
>
A promise indicating the success or failure of the operation.
import { relaunch } from '@tauri-apps/plugin-process';await relaunch();
2.0.0
Source: undefined
Tauri v2.8 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站