getAllWithCurrentPaging

inline fun <T> getAllWithCurrentPaging(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. Uses current page pagination logic.

Return

A list containing all retrieved items from all pages

Parameters

initialPagination

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