@bitsinfra/fusee
    Preparing search index...

    Class StreamWriter

    A writer of one of the run's streams (ctx.stream).

    Index
    closed: boolean

    The stream was complete when it was opened (an earlier attempt of the step completed it: appends are dropped).

    name: string
    recordedCount: number

    Chunks the step's earlier attempts recorded (0 on a first attempt and in workflow code).

    • Appends a chunk: a Uint8Array as bytes, anything else as JSON. Never waits for the disk.

      Parameters

      • value: unknown

      Returns void

    • Completes the stream: readers end once they have every chunk.

      Returns void

    • The chunks the step's earlier attempts recorded (after a crash, the durable ones): continue after them, so readers see no chunk twice.

      Type Parameters

      • T = unknown

      Returns T[]