Closed JakeWharton closed 4 years ago
I've already forgotten the differences. I can see why others don't understand. Here's a first pass:
replayingShare() | replay(1).refCount() | publish().refCount() | |
---|---|---|---|
Disconnects from upstream when there are no subscribers | ✅ | ✅ | ✅ |
Replays the latest value to new subscribers when other subscribers are active | ✅ | ✅ | ❌ |
Replays the latest value to new subscribers when no other subscribers are active | ✅ | ❌ | ❌ |
I'm just going to put this in and we can iterate from there...
That's super helpful yes
63f040d7039df4f8750f8af05d3e7154cb4a7f3e
At least covering
share()
(akapublish().refCount()
),replay(1).refCount()
, andreplay(1).autoConnect()
and the differences to this operator.