https://kotlinlang.org logo
#rx
Title
# rx
u

ursus

04/18/2018, 7:48 PM
@GurpreetSK if value not being there is valid state, then expose it as optional ...Single<Optional<T>>
👍 1
g

GurpreetSK

04/19/2018, 3:59 AM
An
optional
would be the right thing to do but I cannot modify the contract as it will affect a lot of other places.
u

ursus

04/19/2018, 12:30 PM
well you cant have nulls in rxjava
so your kind of out of luck, that or dont emit null, emit some kind of constant value Foo.EMPTY