你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PagedAsyncIterableIterator interface
An interface that allows async iterable iteration both to completion and by page.
Properties
by |
Return an AsyncIterableIterator that works a page at a time |
Methods
next() | The next method, part of the iteration protocol |
[async |
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<TPage>
Property Value
(settings?: TPageSettings) => AsyncIterableIterator<TPage>
Method Details
next()
The next method, part of the iteration protocol
function next(): Promise<IteratorResult<TElement, any>>
Returns
Promise<IteratorResult<TElement, any>>
[asyncIterator]()
The connection to the async iterator, part of the iteration protocol
function [asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>
Returns
PagedAsyncIterableIterator<TElement, TPage, TPageSettings>