Default value
oldergod opened this issue · 1 comments
oldergod commented
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()
.
Right now, say I have
api.doStuff()
.startWith(defaultData)
.replayingShare()
the defaultData
will be emitted for all new first subscriber.
oldergod commented
I indent to push a PR for that
replayingShare(startWith = T)
sounds nice.