@tauri-apps/plugin-process
Perform operations on the current process.
Functions
exit()
exit(code = 0): Promise< void >
Exits immediately with the given exitCode
.
Example
import { exit } from '@tauri-apps/plugin-process';await exit(1);
Since
2.0.0
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.
Source: index.ts:25
relaunch()
relaunch(): Promise< void >
Exits the current instance of the app then relaunches it.
Example
import { relaunch } from '@tauri-apps/plugin-process';await relaunch();
Since
2.0.0
Returns
Promise
< void
>
A promise indicating the success or failure of the operation.
Source: index.ts:41
© 2024 Tauri Contributors. CC-BY / MIT