MR3Y
Jan 30, 2021

I think we were not on the same page. I didn't say SharedFlow can be hot or cold based on replay settings, actually, your response agrees with what I've said. I didn't say SharedFlow will be convenient for `SingleLiveEvent`, all I wanted to do is to clarify the phrase:

"Unfortunately, no. SharedFlow is hot. This means that during periods where the is no observer, say during a configuration change, events emitted on to the flow are simply dropped. Regrettably, this also makes SharedFlow inappropriate to emit events on."

with the situations that this can happen, but I totally agree with the rest of your article.

In other words, I wanted to say the same as what Roman Elizarov said hare: https://github.com/Kotlin/kotlinx.coroutines/issues/2034#issuecomment-631939447

which in turn similar to what you've said in your response

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

MR3Y
MR3Y

Written by MR3Y

Eager to learn more and more! I hate boilerplate. I blog to share some tips & tricks and to talk about my humble opinion.

No responses yet

Write a response