Prefetching Repository
constructor(cachingRepository: MediaRepository, disableEagerCaching: Boolean = false, requestDispatcher: CoroutineDispatcher = Dispatchers.Main)
Parameters
caching Repository
a MediaRepository implementation that performs caching
disable Eager Caching
this allows to temporarily disable eager requests. This can be uses when the system is in power saving mode.
request Dispatcher
the thread this repository should use to perform requests with. This should be the same thad as the one NewPlayer is in.