Skip to content

@loontail/minecraft-kit / LaunchSession

Type Alias: LaunchSession

ts
type LaunchSession = {
  exited: Promise<LaunchExit>;
  pid: number;
  abort: void;
};

Defined in: src/types/launch.ts:84

Live handle for a running game process.

Properties

PropertyModifierTypeDescriptionDefined in
exitedreadonlyPromise<LaunchExit>Resolves with the exit code/signal when the process terminates.src/types/launch.ts:88
pidreadonlynumberOperating-system process id.src/types/launch.ts:86

Methods

abort()

ts
abort(reason?): void;

Defined in: src/types/launch.ts:90

Best-effort cancel — sends SIGTERM, then SIGKILL after the grace period.

Parameters

ParameterType
reason?string

Returns

void

MIT License