G-code Preview — API Reference
    Preparing search index...
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    size: number

    Methods

    • Stream builds across the pool with backpressure (at most size in flight — each worker pulls the next index only when its previous chunk returns), invoking onResult(index, response) as each completes. Memory-friendly: the caller uploads + drops each response immediately, so peak transient geometry is bounded by size (not the whole batch). Rejects on the first worker error; resolves when every request has been delivered (or the pool was disposed mid-run).

      Parameters

      Returns Promise<void>