elizarov
04/06/2017, 7:10 AMasync
assumes that somebody invokes await
on its result and that code will get and handle exception in someway. So, if you are not using the result of async
you should replace async
with launch
and all exceptions will get processed by CoroutineExceptionHandler
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-coroutine-exception-handler/index.html. By default, UncaughtExceptionHandler
of your thread group is used which prints them onto stderr (by default).