Skip to content

process

Perform operations on the current process.

Functions

exit()

function exit(code): Promise<void>

Exits immediately with the given exitCode.

Parameters

ParameterTypeDefault valueDescription
codenumber0The 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();