Could I somehow construct a flow that uses ktor? T...
# coroutines
z
Could I somehow construct a flow that uses ktor? The API I'm using returns several items per page
v
How exactly do you want the flow to be consumed? .i.e. what should the flow emit? Lists of pages, lists of items, individual items, individual pages? Lazily load more pages as you consume the items? (this one a bit trickier).
z
It should emit a list of items, and when collected it will load as many items that are there and once its ran out then it tries the next page