@s2-dev/streamstore - v0.18.1
    Preparing search index...

    Interface AppendSession

    Public AppendSession interface with retry, backpressure, and streams. This is what users interact with - implemented by AppendSession in ../retry.ts.

    interface AppendSession {
        readable: ReadableStream<AppendAck>;
        writable: WritableStream<AppendArgs>;
        "[asyncDispose]"(): PromiseLike<void>;
        acks(): AcksStream;
        close(): Promise<void>;
        failureCause(): S2Error;
        lastAckedPosition(): AppendAck;
        submit(
            records: AppendRecordType | AppendRecordType[],
            args?: Omit<AppendArgs, "records"> & { precalculatedSize?: number },
        ): Promise<AppendAck>;
    }

    Hierarchy

    • AsyncDisposable
      • AppendSession
    Index

    Properties

    readable: ReadableStream<AppendAck>

    Readable stream of acknowledgements for appends.

    writable: WritableStream<AppendArgs>

    Writable stream of append requests.

    Methods

    • Returns PromiseLike<void>