mzgreen
02/03/2017, 6:51 AMObservable let’s say:
val replayedObs = someObservable.replay(1)
//and at some point later
val subscription = replayedObs.connect()
Is there a way to execute subscription.unsubscribe() when replayedObs emitted a value and someone actually received it? I don’t care if there was one or multiple observers. I would like to achieve that replayedObs replays 1 item and only once and then unsubscribe from underlying observable.