Hey guys, does anyone know why code in my subscrib...
# android
l
Hey guys, does anyone know why code in my subscribe() is not called ? Also note that this code is executed inside service that is independent of app
p
Because you never complete.
Completable.complete().concatWith { Completable.complete() }
This is equivalent with this.
Copy code
Completable.complete().concatWith(fun(it: CompletableObserver) {
    Completable.complete()
  })
But what you actually want is
concatWith(Completable.fromCallable{})
👍 2
l
Thank you very much :) I thought there was no difference