-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Deadlock in case of multiple nested runBlocking #1679
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
Comments
Could you please verify your example one more time? I've copypasted it as is and it seems to work properly with Kotlin 1.3.61 and coroutine 1.3.2 |
Yes, it reproduce in jvm 8, 12, 13. But sometimes version without |
Thanks, I will try to run it on a different machine and/or analyze more thoughtfully |
@qwwdfsad thank you. If it will could help, I have tried it at macOS and run this test in Idea and through gradle. |
Looks like it has the same root cause as
Thanks for the reproducer! |
@qwwdfsad yes, this smaller test has same effect. |
Implementation note:
|
@qwwdfsad what could be done in cases where it need to have such dependency? Does it have any workarounds? |
You can replace |
Thanks @qwwdfsad. I have misunderstood about meaning of "dependency". |
I have find an infinite awaiting of execution of
runBlocking
.Minimal reproducible code:
If you running test, code will never complete. Execution freeze on
executeOnceTest
. But if uncommentdelay(1)
all will works fine.kotlin 1.3.61
kotlin-coroutines 1.3.2
gradle 6.0.1
The text was updated successfully, but these errors were encountered: