Refit.PagedEnumerable<TPage, TItem>
A lazily fetched sequence of pages, enumerable as items or as the API's own page objects. Every enumeration starts
again from the first page and invokes the page-fetching call once per page; nothing is requested until it is enumerated.
namespace Refit
{
public sealed class PagedEnumerable<[Nullable(2)] TPage, [Nullable(2)] TItem> : IAsyncEnumerable<TItem>
{
public IAsyncEnumerable<TPage> AsPages();
public PagedEnumerable<TPage, TItem> WithPrefetch();
public PagedEnumerable<TPage, TItem> WithMaxPages(int pages);
public IObservable<TItem> ToObservable();
public IObservable<TPage> ToPageObservable();
public IAsyncEnumerator<TItem> GetAsyncEnumerator(CancellationToken cancellationToken = default(CancellationToken));
}
}