Hi All, In our viewmodel we want to have a diff ve...
# android
p
Hi All, In our viewmodel we want to have a diff version of launch just as a last check. Which among 2 is better? I like safeLaunch2 as that code is “testable” and i was not able to test safeLaunch1 bcz of CoroutineExceptionHandler Still , I am curious any reason i should go with safeLaunch1?
o
Hello, my only concern is that if the
launchBody
contains another call to a suspend function with a
.launch{}
block, and this suspend function got an exception, will this exception be handled by the 2nd approach?
p
Hey @Othman EL-KOURD , I don’t see how that can be a problem , Still let me try and update here