-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Implementation by delegation violates internal invariant of JobSupport #2423
Labels
Comments
vadimsemenov
added a commit
to vadimsemenov/kotlinx.coroutines
that referenced
this issue
Dec 1, 2020
To work around Kotlin#2423.
qwwdfsad
added a commit
that referenced
this issue
Dec 3, 2020
…be equal to outer job Job is supposed to be "sealed" interface, but we also have non-sealed Deferred that can be successfully implemented via delegation and such delegation may break code (if assertions are enabled!) in a very subtle ways. This assertion is our internal invariant that we're preserving anyway, so it's worth to lift it to simplify life of our users in the future Fixes #2423
This was referenced Mar 8, 2021
Closed
Merged
This was referenced Mar 15, 2021
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I managed to reproduce it with
awaitAll
, not sure if the problem is in JobSupport or in AwaitAll.Full stack trace:
The text was updated successfully, but these errors were encountered: