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

    Module data/loaders/once-init

    One-shot async initializer with retry-on-failure semantics.

    Cache the in-flight promise so concurrent callers all await the same work, but null it back out on rejection so the next caller can retry from scratch. The spatial-index loaders reach it through LoaderLifetime.ensureInitialized (./loader-lifetime), which adds the disposed latch and the initialization priority on top.

    const once = new OnceInit();
    await once.ensure(() => initialize());
    OnceInit