process
Perform operations on the current process.
Functions
exit()
function exit(code): Promise<void>
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
import { exit } from '@crabnebula/taurify-api/process';await exit(1);
relaunch()
function relaunch(): Promise<void>
Exits the current instance of the app then relaunches it.
Returns
Promise
<void
>
A promise indicating the success or failure of the operation.
Example
import { relaunch } from '@crabnebula/taurify-api/process';await relaunch();