This never completes:
Completable.complete()
.andThen{ Completable.complete() }
.test()
.assertComplete()
This does complete:
Completable.complete()
.andThen(Completable.complete())
.test()
.assertComplete()
According to Jake Wharton:
"You want andThen(Completable.complete())
. Note the use of parenthesis and
not curly braces. The latter creates a lambda that doesn't call its emitter."
Reference: https://github.com/ReactiveX/RxJava/issues/5551
Can anyone explain this in more detail? I thought I understood lambda's but this has really thrown me.