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

    Class RetryWakes

    Index
    • Parameters

      • canWake: () => boolean

        Whether a wake can be delivered at all (no tick/render callback wired ⇒ scheduling is a no-op).

      • wake: () => void

        Ask the loop for one frame.

      Returns RetryWakes

    timers: Map<object, Timeout> = ...
    attempts: WeakMap<object, number> = ...
    canWake: () => boolean

    Whether a wake can be delivered at all (no tick/render callback wired ⇒ scheduling is a no-op).

    wake: () => void

    Ask the loop for one frame.

    • baseMs backed off by key's consecutive retries.

      Parameters

      • key: object
      • baseMs: number

      Returns number

    • Wake the loop once in delayMs for key, unless a wake is already pending.

      Parameters

      • key: object
      • delayMs: number

      Returns void

    • Cancel key's pending wake (its attempt count is kept).

      Parameters

      • key: object

      Returns void

    • The wait ended in a retry: cancel the wake and lengthen the next wait.

      Parameters

      • key: object

      Returns void

    • key succeeded or was retried explicitly: cancel the wake and drop its backoff.

      Parameters

      • key: object

      Returns void