I want to implement my custom PagedList.BoundaryCallback with coroutines, liveData and repository pattern using Paging Library 2, but I couldn't find a good example of integration of these libraries.
Even in Android official samples, they use enqueue and callbacks to perform the API request with paging 2...
I read this Medium post also but it use a coroutines scope inside the boundary callback and I think that is not a good practice.
Is there any way to achieve it? Or should I migrate to Paging 3?