-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Dispatcher failures may leave coroutines uncompleted #4209
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
Labels
Comments
It's unclear what to do in this scenario, though. Here are some options:
|
dkhalanskyjb
pushed a commit
that referenced
this issue
Mar 10, 2025
* Properly rename test that is responsible for fast-path failing for undispatched mode * Simplify, document and reduce the binary size of Undispatched.kt * Rethrow dispatcher exceptions during the undispatched coroutines start immediately Otherwise, in the face of malfunctioning dispatcher, there might be no trace of any error, making it extremely hard to debug. The root cause should be addressed by #4209 Fixes #4142
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
During the review of #4181, it became evident that we don't properly handle failures in coroutine dispatchers, and this can surface in ways other than just strange-looking exceptions.
Provide a Reproducer
This code will hang after printing
This code runs...
, as the launched coroutine never finishes.The text was updated successfully, but these errors were encountered: