[Channels] Hi, everyone. Are channels stable? I'm ...
# coroutines
m
[Channels] Hi, everyone. Are channels stable? I'm getting experimental errors in InteliJ with latest coroutines dependency
Copy code
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.0-M1")
l
`Channel`s are stable,
produce
is not, as simple as this, and the IDE tells it to you.
m
Thanks, wasn't sure. Strange that they present experimental stuff in their official documentation for Kotlin, expected stable only to be there.
l
How do you think experimental stuff graduates to stable?
My answer is: By getting people to try it and gather feedback.
m
True, but there's usually an experimental section separated from the stable section, no?
l
BTW, experimental doesn't mean unsuable. In kotlinx libraries, it mostly means the API surface could change, it rarely means it's broken. In fact, I don't recall any time where something experimental was broken in any way in the kotlinx libraries (the story is different for #multiplatform).
☝️ 2
True, but there's usually an experimental section separated from the stable section, no?
Well, there's already the warnings in the IDE.
m
Guess this way it's faster to "experiment" with latest features. Great to hear that experimental features are quite stable. Thanks for explaining this.
g
experimental is not about “runtime stability”, it’s about API stability (and backward compatibility)
👍 1
m
@gildor your info was what I was looking for, but I didn’t express properly. Thanks