GenericRepository

constructor(networkDataSource: NetworkDataSource, localDataSource: LocalDataSource<E>, responseType: TypeInfo, currentTimeMillis: () -> Long = System::currentTimeMillis, scope: CoroutineScope? = null)

Parameters

scope

coroutine scope hosting the coalesced loads. Pass your own to tie loads to a lifecycle you control; when omitted, an internal SupervisorJob on Dispatchers.Default is created and close cancels it. close never cancels a scope you supplied.

Prefer the reified GenericRepository(networkDataSource, localDataSource) factory below, which captures responseType for you.