Joey
12/03/2019, 5:32 AMlaunch{} and it looks a bit messy in my point of view. Any suggestions?hellman
12/03/2019, 7:08 AMlifecycleScope.launnch { } in a lot of places. Something like this:
inline fun AppCompatActivity.call(crossinline block: suspend () -> Job) {
lifecycleScope.launch { block() }
}hellman
12/03/2019, 7:10 AMViewModel and only expose non-suspend functions and LiveData to the Activity , but that is more of a personal preference.Joey
12/06/2019, 7:08 AMgildor
12/08/2019, 8:28 AM