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

    What the warm-up needs from the pool (injected, so it stays pool-agnostic).

    interface CodecWarmupDeps {
        workers: () => readonly WorkerInstance[];
        run: (entry: WorkerInstance, call: Promise<void>) => Promise<void>;
        enabled: () => boolean;
        onError: (error: unknown) => void;
    }
    Index
    workers: () => readonly WorkerInstance[]

    The live workers.

    run: (entry: WorkerInstance, call: Promise<void>) => Promise<void>

    Run one worker's warmCodecs task (timeout-guarded by the pool).

    enabled: () => boolean

    False under the ?mainThreadCodecs kill switch: never warm.

    onError: (error: unknown) => void

    Report a failed warm-up (the worker is retried on the next demand).