Dex TypeScript SDK 1.32.0
    Preparing search index...

    Class BufferedTextStream

    Batches text chunks during one asynchronous Step invocation.

    Implements

    • StepOutputFinalizer
    Index

    Constructors

    • Creates a writer from validated invocation-owned components.

      Parameters

      • stream: Stream<string>

        Registered string Stream receiving emitted batches.

      • context: Context

        Current asynchronous Step Context.

      • flushIntervalMs: number

        Positive one-shot interval in milliseconds.

      • maxBufferedBytes: number

        Positive soft UTF-8 threshold.

      Returns BufferedTextStream

    Methods

    • Discards buffered text and stops the timer after invocation cancellation.

      Returns void

    • Flushes the tail and closes this writer during invocation finalization.

      Returns void

    • Appends one chunk without modification and flushes after crossing the soft size threshold.

      Parameters

      • value: string

        Text to append; an empty string is ignored.

      Returns void

      Error if the invocation finished or an earlier background flush failed.