• Preparing search index...
  • The search index is not available
@google/genai
  • @google/genai
  • gaos/types/operations
  • unwrapResultIterator

Function unwrapResultIterator

  • unwrapResultIterator<V, PageState>(
        iteratorPromise: Promise<PageIterator<Result<V, unknown>, PageState>>,
    ): Promise<PageIterator<V, PageState>>

    Converts an async iterator of Result<V, E> into an async iterator of V. When error results occur, the underlying error value is thrown.

    Type Parameters

    • V
    • PageState

    Parameters

    • iteratorPromise: Promise<PageIterator<Result<V, unknown>, PageState>>

    Returns Promise<PageIterator<V, PageState>>

    • Defined in src/gaos/types/operations.ts:68

Settings

@google/genai
  • Loading...

Generated using TypeDoc