MR3Y
Feb 13, 2021

-No, this will partially work as buffered channels but not the SAME!. Why??

if you have no subscribers/observers (i.e onStop() between configuration changes) and you have Unobserved event, the new events emitted during this period will supersede the Unobserved event because there are no observers `SharedFlow` will not respect BufferOverflow.SUSPEND policy. this policy will be respected if you have at least one collector/subscriber and at least one Unprocessed event.

Again, if you looked at 2nd requirement in the article which is:

"If there is no observer, events must buffer until an observer starts to consume them."

this rule would be broken/violated with this policy

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