AS says > Channel operators are deprecated in f...
# coroutines
b
AS says
Channel operators are deprecated in favour of Flow and will be removed in 1.4
But if my channel source is hot (network traffic), how/where should I introduce Flow? The articles I've read so far make the distinction between hot and cold data streams and claim Flow is for cold streams
g
Operators on channels are not efficient (each of them create intermediate Channel), if you need operators better to use Flow, just use flow interface to access your hot stream
b
how do you switch from a channel to a flow? just use
channel.consume
inside
flow{}
?
g
channel.asFlow()