I understand that channels as of today are marked ...
# coroutines
j
I understand that channels as of today are marked obsolete but I was looking to gain clarity on what the future of channels looks like (beyond what is described in issue #254). Could we still anticipate some form of a CSP like model -- facilitate communicating between coroutines? Are the proposed replacement of lazy async streams similar in concept to channels?
1
b
I’d love to hear an update on this as well!
j
can you link to issue #254? I'm sure where to find it
r
s
I don't think this means they are going to be obsolute, there are plenty of scenarios where the hot producer isn't applicable, or isn't a concern.
g
Existing API is obsolete, but it doesn’t mean that hot streams in coroutines are obsolete (or just plan to remove support of hot streams) in general
1
s
ah okay, noted
e
Channels are not obsolete. Channels are great communication primitive. They are not very good for data processing pipelines (think
filter { ... }.map { ... }
), though.
p
What's the plans for the future on channels? Everything regarding channels is marked as obsolete and there seems to be no progress on it for months @elizarov
e
Operators on channels are obsolete. Operators will work via cold-streams (for performance), but communication between coroutines will still happen via channel. They are even used internally in cold stream where you need to switch from one context to another.
👍 3
b
How might we see a preview of cold streams? Is anything like that available?
e
Wait for it.