Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Race a promise against a timeout. Throws Error('OPFS timeout: <label> exceeded <ms>ms') if the timeout fires first. Used to bound individual OPFS I/O calls so a hung browser handle cannot stall the cache indefinitely.

      Type Parameters

      • T

      Parameters

      • promise: Promise<T>
      • timeoutMs: number
      • label: string

      Returns Promise<T>