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

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

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!

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.

2 participants