liminal
12/31/2019, 6:56 PMRuntimeException
in imageRepository.downloadImage("img-url-3")
only when getting image3
. Since i am not calling await()
on it, i was expecting the exception to go unnoticed and not propagate to default CoroutineExceptionHandler
and not crash my app. Yet the app crashes still. can someone explain what is different about exception handling when await()
is called vs when it is not? thanks!streetsofboston
12/31/2019, 7:05 PMliminal
12/31/2019, 7:15 PMKroppeb
01/01/2020, 12:21 PMasync
immediately launches the coroutine by default. You can make them lazy by doing something like this async(start=CoroutineStart.Lazy)