You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code hangs, but does not hang without invokeOnCompletion:
fun main() {
runBlocking {
val job = GlobalScope.launch { }
job.invokeOnCompletion { }
}
}
Initial investigation shows that it is timing-depended, e.g. adding println statements inside runBlocking before } affects whether it hangs or not, too.
The text was updated successfully, but these errors were encountered:
qwwdfsad
changed the title
Puzzling timing-depended hand in runBlocking
Puzzling timing-depended hang in runBlocking
Nov 14, 2018
From @konrad-kaminski
This code hangs, but does not hang without
invokeOnCompletion
:Initial investigation shows that it is timing-depended, e.g. adding
println
statements insiderunBlocking
before}
affects whether it hangs or not, too.The text was updated successfully, but these errors were encountered: