kinetex - v1.0.0-rc.1
    Preparing search index...

    Function streamWithProgress

    • Iterate over a ReadableStream chunk by chunk, yielding progress snapshots.

      Parameters

      • stream: ReadableStream<Uint8Array<ArrayBufferLike>>

        The ReadableStream to consume.

      • total: number | null

        Total bytes (null if unknown).

      • options: Omit<ProgressOptions, "onProgress"> = {}

        Progress options (signal, throttleHz, smoothingFactor — but NOT onProgress).

      Returns AsyncGenerator<StreamWithProgressValue>

      If the stream is aborted via AbortSignal.