Skip to content

process

Perform operations on the current process.

function exit(code): Promise<void>

Exits immediately with the given exitCode.

ParameterTypeDefault valueDescription
codenumber0The exit code to use.

Promise<void>

A promise indicating the success or failure of the operation.

import { exit } from '@crabnebula/taurify-api/process';
await exit(1);

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 '@crabnebula/taurify-api/process';
await relaunch();