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

    Class AsyncGate

    Index
    • Parameters

      • capacity: () => number

        Read at every admission, so a live-tunable cap applies to the next acquisition.

      • ranks: number = 1

        Number of priority ranks (0 most urgent); default one.

      Returns AsyncGate

    capacity: () => number

    Read at every admission, so a live-tunable cap applies to the next acquisition.

    • Wait for a place. Resolves with the release; rejects with the signal's reason (or an AbortError) if signal aborts first, freeing the queue place, and at once for an already-aborted signal.

      Parameters

      • Optionalsignal: AbortSignal
      • priority: number = 0

        Rank to queue under (clamped to the gate's ranks).

      Returns Promise<AsyncGateRelease>

    • Reject every queued waiter with reason and zero the counts (test isolation).

      Parameters

      • reason: unknown

      Returns void