Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...

    One live instance of the operation's owner, wired to controllable inner work.

    interface LifecycleSubject {
        start(n: number, signal?: AbortSignal): void | Promise<unknown>;
        pending(): number;
        settle(index: number, outcome: "ok" | "fail"): void;
        observe(): unknown;
        inFlight?(): number;
        failures?(): number;
        dispose(): void | Promise<void>;
        reset?(): void;
    }
    Index
    • Start operation n (0, 1, … — distinct inputs, so a superseded run and its successor are distinguishable). Returns the operation's promise, or nothing for a fire-and-forget operation.

      Parameters

      • n: number
      • Optionalsignal: AbortSignal

      Returns void | Promise<unknown>

    • Settle the inner work item at index (request order). Called at most once per index.

      Parameters

      • index: number
      • outcome: "ok" | "fail"

      Returns void