Appearance
@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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
exited | readonly | Promise<LaunchExit> | Resolves with the exit code/signal when the process terminates. | src/types/launch.ts:88 |
pid | readonly | number | Operating-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
| Parameter | Type |
|---|---|
reason? | string |
Returns
void