Sample created to practice MVVM and DataBinding in Android Applications.
-
Updated
Aug 2, 2020 - Java
Add a description, image, and links to the mvvm-pattern topic page so that developers can more easily learn about it.
To associate your repository with the mvvm-pattern 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 {