couldn’t you use a Maybe for that
# rx
d
couldn’t you use a Maybe for that
g
I dont know much about
maybe
, havent used it yet, but would it complete if there is nothing in the stream and return a (default) value?
e
It will just complete without a value
d
yeah Maybe subscribe functions are a little confusing. onSuccess = received a value, onError = received error, onComplete = completed with no value.
m
use maybe, then use switchIfEmpty