CachingRepository

constructor(actualRepository: MediaRepository, requestDispatcher: CoroutineDispatcher = Dispatchers.Main)

Parameters

actualRepository

the actual repository

requestDispatcher

the thread this repository should use to perform requests with. This should be the same thad as the one NewPlayer is in.

TODO: Maybe a (individual) timeout would be nice