@tauri-apps/plugin-process - v2.3.0
    Preparing search index...

    Function exit

    • Exits immediately with the given exitCode.

      Parameters

      • code: number = 0

        The exit code to use.

      Returns Promise<void>

      A promise indicating the success or failure of the operation.

      import { exit } from '@tauri-apps/plugin-process';
      await exit(1);

      2.0.0