A11 TypeScript API - v0.7.0
    Preparing search index...

    Class ChunkStoreReader

    Fair, stackless, prefetching cursor over a ChunkStore.

    A reader turns the store's waitable log operations into a simple next() or async-iterator interface. Ordered mode stops after the final fragment, a clean store closure, or its configured read limit; arrival mode is useful when inspecting interleaved network ingestion. The bounded prefetch buffer lets consumers overlap storage latency without allocating a task or fiber per node.

    One fetch is in flight at a time, unlike native. ChunkStoreReader in C++ keeps 16 behind a reorder buffer, which overlaps the latency of a store that answers slowly. Every store in this library is LocalChunkStore -- in memory, resolving on the microtask queue -- so there is no latency to overlap, and a reorder buffer would add ordering and end-of-sequence cases for a gain that cannot appear. Revisit this if a store with real per-read latency arrives, such as one backed by a fetch.

    Index
    options: Readonly<NormalizedReaderOptions>

    Validated immutable cursor options.

    store: ChunkStore

    Ordered storage followed by this cursor.