Would you use Kotlin Channels in prod even though ...
# announcements
e
Would you use Kotlin Channels in prod even though they are marked experimental?
s
Sure!
s
Should be fine! 🙂 As long as you don’t write a library that exposes them in its API.
e
Thx
g
In 6-12 months maybe... A lot of work is going on there.
l
I do use them in production
m
The co-routine experimental to release transition was pretty smooth as far as I experienced it, having gone to production with experimental. Still, depends on how much code you’re shipping and how tricky it is to update balanced against how much clearer it makes your code.
g
It's not just the experimental flag. Big portion of current channels api is marked as obsolete, means you will refactor a lot guaranteed. Unless your goal is kotlin for the sake kotlin, then for sure. But that's a strange goal for production environment.
1
☝️ 1
e
Thx, I will also consider using java queues maybe kotlin actors too.
l
FYI, it is because Flow is coming (as an EAP for now), and this will provide interop with channels, much needed for the operators it will provide