Closed oldergod closed 5 years ago
That's be dope to get a default value, kind of a startWith that would be executed only once in the lifetime of the replayingShare().
startWith
replayingShare()
Right now, say I have
api.doStuff() .startWith(defaultData) .replayingShare()
the defaultData will be emitted for all new first subscriber.
defaultData
I indent to push a PR for that
replayingShare(startWith = T) sounds nice.
replayingShare(startWith = T)
That's be dope to get a default value, kind of a
startWith
that would be executed only once in the lifetime of thereplayingShare()
.Right now, say I have
the
defaultData
will be emitted for all new first subscriber.