-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Which dispatchers does CoroutineExceptionHandler use? #1651
Comments
I don't believe it uses any dispatchers, it just reports exceptions from whatever thread they were thrown on. You can always The documentation should be more explicit though either way. |
|
Thank you both for the help! A follow up question: is |
@veganafro no, is it supposed to catch all unhandled exceptions (and it is not supposed to catch
Probably |
I'm new to coroutines, and I'm curious which
Dispatchers
CoroutineExceptionHandler
uses. I'd like to perform UI work, and display an AndroidSnackBar
from the exception handler context. But, I want to confirm or not that the safety of doing so as I can't usewithContext(Dispatchers.UI)
to explicitly state the context. Thanks in advance!The text was updated successfully, but these errors were encountered: