Can we create observable based on completable.onComplete()
to replace if/else inside observable.onCreate() ?
completable
.(if onComplete() called, then continue to create observable)
Can we create observable based on completable.onComplete()
to replace if/else inside observable.onCreate() ?
completable
.(if onComplete() called, then continue to create observable)
Just had the same problem. Here is what I came up with:
myCompletable.andThen(
Observable.just(true)
.flatMap(
ignoreIt -> createAnObservable(...)
)
);