~The documentation says that only `launch` will us...
# coroutines
s
The documentation says that only
launch
will use the CoroutineExceptionHandler
For
async
, the exception is thrown when using
await()
a
Isn’t that what’s being asked? It looks like the
exceptionHandler
isn’t being used by
launch
without specifying
job
again
s
Aghhhh… read too quickly! Thank you for noticing 🙂
n
s
Very odd… i tried it. This slight modification also makes it work. AS long as
job
is a parameter of
launch
it works….
Copy code
...
  withContext(exceptionHandler) {
      launch(job) { throw RuntimeException("foo") }
  }
  ...
n
Yep, but I am needed the same job for all coroutines inside
withContext
s
I think we need an expert. 🙂 @elizarov,Could you shed light on this?