Join Slack
Powered by
<@U7SS0SAPR> if value not being there is valid sta...
# 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
ursus
04/19/2018, 12:31 PM
so your kind of out of luck, that or dont emit null, emit some kind of constant value Foo.EMPTY
Open in Slack
Previous
Next