in general, flows are the intended way to handle e...
# coroutines
o
in general, flows are the intended way to handle everything now. if you need a hot flow, take your channel and do
chan.asFlow()
first
k
Hmm okay, i'll try that. What's the fundamental different? Just an api change or is there an actual meaning behind it?
d
Flow
s are lazy and safe (in terms of resource management). I recommend Roman Elizarov's blog posts on them. https://medium.com/@elizarov/cold-flows-hot-channels-d74769805f9?source=---------14------------------
👍 1