@tauri-apps/plugin-process
此内容尚不支持你的语言。
Perform operations on the current process.
Functions
exit()
Exits immediately with the given exitCode
.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
code | number | 0 | The exit code to use. |
Returns
Promise
<void
>
A promise indicating the success or failure of the operation.
Example
Since
2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/process/guest-js/index.ts#L25
relaunch()
Exits the current instance of the app then relaunches it.
Returns
Promise
<void
>
A promise indicating the success or failure of the operation.
Example
Since
2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/process/guest-js/index.ts#L41
© 2024 Tauri Contributors. CC-BY / MIT