kotlinx.coroutines
kotlinx.coroutines copied to clipboard
Remove outdated kludges
trafficstars
Hello!
KT-28938 is fixed since Kotlin 1.3.60, but Emitters.kt still has those at 2 places, in the bodies of transform and unsafeTransform:
// kludge, without it Unit will be returned and TCE won't kick in, KT-28938
return@collect transform(value)
It seems that the Kotlin/JVM now generates the same bytecode with or without that extra return@collect, according to my quick glance in decompiled Java in the "Kotlin Bytecode" tool window (same number of lines).
Maybe those can be cleanup up, now?
Have a nice day!