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

    Generic Event Queue for async event processing.

    Provides a non-blocking queue that producers can push to and consumers can drain in batches. Designed for decoupling event producers from consumers.

    const queue = new EventQueue<MyEvent>();

    // Producer (non-blocking)
    queue.push({ type: 'load', data: {...} });

    // Consumer (batch processing)
    const events = queue.drain();
    for (const event of events) {
    processEvent(event);
    }

    Type Parameters

    • T
    Index
    queue: T[] = []
    maxSize: number