paging Flow
Builds a cold Flow that lazily fetches and emits items across all Paging pages, following Spotify's next URL until it runs out or maxPages is reached.
Return
A Flow emitting each item as its page is fetched.
Parameters
Paging options used to fetch the first page.
Fetches a page for the given PagingOptions.
Maximum number of pages to fetch.
Throws
if maxPages is less than 1; thrown when the flow is collected, not when this function is called.
Builds a cold Flow that lazily fetches and emits items across all pages, following Spotify's next URL until it runs out or maxPages is reached.
Return
A Flow emitting each item as its page is fetched.
Parameters
Paging options used to fetch the first page.
Fetches a page for the given PagingOptions.
Extracts the next page URL from a page payload.
Extracts the list of items from a page payload.
Maximum number of pages to fetch.
Throws
if maxPages is less than 1; thrown when the flow is collected, not when this function is called.