https://kotlinlang.org logo
#coroutines
Title
# coroutines
o

octylFractal

12/15/2019, 6:44 PM
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

karelpeeters

12/15/2019, 7:03 PM
Hmm okay, i'll try that. What's the fundamental different? Just an api change or is there an actual meaning behind it?
d

Dominaezzz

12/15/2019, 7:10 PM
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
2 Views