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

Philipp Kleber

07/03/2022, 4:37 PM
Hi, the docs of
Flow#shareIn
mention, that using
buffer(0).shareIn(scope, started, 0)
makes upstream suspend until all subscribers have processed the value. My question is whether that still holds true for
replay > 0
(for all currently active subscribers).
Shortly after writing this, I actually did end-up finding the corresponding implementation and I'm pretty sure I found that this does not hold true for
replay > 0
. I don't have a specific use-case, was just curious.
3 Views