muthuraj
05/12/2017, 2:17 PMCompletable.create { }
the CompletableOnSubscribe
becomes null.
Completable.create((CompletableOnSubscribe)null.INSTANCE);
this is the decompiled version.
Since it becomes null, anything I put inside create doesn’t work.
But if I use
Completable.create(object : CompletableOnSubscribe{
override fun subscribe(e: CompletableEmitter?) {
}
})like this, then it is working fine.
leosan
05/12/2017, 2:31 PMCompletable.create { emitter ->
//myCode
emitter.onComplete()
}
muthuraj
05/12/2017, 3:11 PMnull.INSTANCE
on decompiled class. Also on debugging, the emitter value is always null.