Deprecation/removal of Iterable::asReceiveChannel


I recently started switching some projects to Kotlin 1.3.0 and noticed that kotlinx.coroutines.channels.asReceiveChannel no longer exists. Apparently, it has been deprecated in 0.27.0 of kotlinx-coroutines-core-common and I’m curious about the motivation behind this. Is it to avoid abuse of channels API for things that operate on collections or is there any kind of technical problem with these?


Curious about this too just in the interest of transparency. I see when it was removed and when it was deprecated but there is no reason why. I assume they just thought it wasn’t worth it as a helper.