@launchdarkly/react-native-client-sdk - v10.23.2
    Preparing search index...

    Interface ResponseChunkIterator

    The source of response chunks. A platform provides the iterator from its own stream type. For example, a Node IncomingMessage provides a compatible iterator through its Symbol.asyncIterator method.

    interface ResponseChunkIterator {
        next(): Promise<{ done?: boolean; value?: Uint8Array<ArrayBufferLike> }>;
        return?(): Promise<{ done?: boolean; value?: Uint8Array<ArrayBufferLike> }>;
    }
    Index
    • Resolves with the next chunk, or with done: true when the stream ends. Rejects when the connection terminates before the server ends the stream. A chunk delivered together with done: true is discarded, so the iterator must deliver the last chunk on its own.

      Returns Promise<{ done?: boolean; value?: Uint8Array<ArrayBufferLike> }>

    • Releases the iterator. A Node Readable iterator queues this call behind a pending read, so this call alone does not release an idle stream.

      Returns Promise<{ done?: boolean; value?: Uint8Array<ArrayBufferLike> }>