get All With Next Paging
inline fun <T> getAllWithNextPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>): List<T>(source)
Retrieves all items from a paginated source, automatically moving to the next page until an empty page or the last page is reached.
Return
A list containing all retrieved items from all pages
Parameters
initial Pagination
The pagination to start with. Defaults to FirstPagePagination
block
Function that retrieves a page of results for the given pagination
Type Parameters
T
The type of items being retrieved