Skip to content
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

Do not report exceptions raised in CoroutineDispatcher.dispatch as in… #4181

Merged
merged 11 commits into from
Oct 21, 2024

Conversation

zuevmaxim
Copy link
Contributor

…ternal errors

Fix #4091

Copy link
Collaborator

@dkhalanskyjb dkhalanskyjb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice start, though a review of the other places where dispatch, isDispatchNeeded, and/or intercepted() happens shows that it's in general very easy to leave kotlinx-coroutines in an incorrect state if dispatchers throw: #4209

If you're up for it, we can try to provide sensible behavior for dispatcher errors in all places as part of this pull request, or we can limit the scope to that one specific crash and leave the more robust and general solution for another time.

@dkhalanskyjb
Copy link
Collaborator

Historical note: we've discussed it internally and decided that #4209 is out of this PR's scope.

Copy link
Collaborator

@dkhalanskyjb dkhalanskyjb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

Copy link
Contributor

@qwwdfsad qwwdfsad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

Please address/accept my comment and it is good to go.

@zuevmaxim zuevmaxim merged commit 46f9ccc into develop Oct 21, 2024
1 check passed
@zuevmaxim zuevmaxim deleted the zuev/fix-4091 branch October 21, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants