Android MVVM + Retrofit + Dagger 2 + Room
-
Updated
Sep 3, 2018 - HTML
Add a description, image, and links to the livedata-databinding topic page so that developers can more easily learn about it.
To associate your repository with the livedata-databinding topic, visit your repo's landing page and select "manage topics."
When an API exception is happening the exception should be caught in catch block is it?
`
fun invoke(
scope: CoroutineScope,
params: Params?,
onResult: (UseCaseResponse)
) {
val backgroundJob = scope.async {
run(params)
}
scope.launch {
backgroundJob.await().let {
try {