PagedAsyncIterableIterator interface

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

Properties

byPage

Return an AsyncIterableIterator that works a page at a time

Methods

next()

The next method, part of the iteration protocol

[asyncIterator]()

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

Property Details

byPage

Return an AsyncIterableIterator that works a page at a time

byPage: (settings?: TPageSettings) => AsyncIterableIterator

Property Value

(settings?: TPageSettings) => AsyncIterableIterator

Method Details

next()

The next method, part of the iteration protocol

function next(): Promise>

Returns

Promise>

[asyncIterator]()

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

function [asyncIterator](): PagedAsyncIterableIterator

Returns