Oknesif
Oknesif

Reputation: 526

A way to emit items after sourceObservable completed

Is there a way to wrap Observable in a way that chain will switch to another Observable, the way it works with Maybe.switchIfEmpty(anotherMaybe), but something like

sourceObservable
.switchOnComplete(anotherObservable)

Upvotes: 1

Views: 14

Answers (1)

Oknesif
Oknesif

Reputation: 526

I just found that Observable.concatWith() is exactly what I needed.

Upvotes: 1

Related Questions