android
kotlin
room
flow
coroutines
mvvm
kotlin-android
moshi
material-components
retrofit2
coroutines-android
mvvm-android
livedata
android-architecture-components
dagger2-android
room-persistence-library
viewbinding
kotlin-flow
livedata-viewmodel
-
Updated
Jul 17, 2020 - Kotlin
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 {