Join Slack
Powered by
Do I understand the documentation for `shareIn` in...
# flow
a
ansman
10/28/2020, 6:28 PM
Do I understand the documentation for
shareIn
in that terminal events are
not
propagated to subscribers?
e
elizarov
10/31/2020, 9:11 AM
Yes.
a
ansman
12/09/2020, 5:33 PM
@elizarov
I'm curious why this is the case. It means you can only really use ShareIn nicely with infinite streams?
e
elizarov
12/14/2020, 7:02 AM
You can use them with finite streams, too, if you
materialize
their completion events explicitly. There's more discussion here:
https://github.com/Kotlin/kotlinx.coroutines/issues/2047#issuecomment-632810231
Open in Slack
Previous
Next