android
kotlin
events
todo
mvp
glide
rxjava2
retrofit2
anko
todoapp
retrofit2-rxjava2
wanandroid
retrofit2-kotlin
-
Updated
Mar 25, 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 {