1

Can we create observable based on completable.onComplete() to replace if/else inside observable.onCreate() ?

completable
.(if onComplete() called, then continue to create observable) 

1 Answers1

0

Just had the same problem. Here is what I came up with:

myCompletable.andThen(
    Observable.just(true)
      .flatMap(
        ignoreIt -> createAnObservable(...)
      )
);
Nantoka
  • 4,174
  • 1
  • 33
  • 36