Esposter
    Preparing search index...

    Interface PagedAsyncIterableIterator<TElement, TPage, TPageSettings>

    An interface that allows async iterable iteration both to completion and by page.

    interface PagedAsyncIterableIterator<
        TElement,
        TPage = TElement[],
        TPageSettings = PageSettings,
    > {
        "[asyncIterator]": () => PagedAsyncIterableIterator<
            TElement,
            TPage,
            TPageSettings,
        >;
        byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;
        next: () => Promise<IteratorResult<TElement, any>>;
    }

    Type Parameters

    Index

    Properties

    "[asyncIterator]": () => PagedAsyncIterableIterator<
        TElement,
        TPage,
        TPageSettings,
    >

    The connection to the async iterator, part of the iteration protocol

    byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>

    Return an AsyncIterableIterator that works a page at a time

    next: () => Promise<IteratorResult<TElement, any>>

    The next method, part of the iteration protocol