I use doOnComplete and doOnError when I have a fun...
# rx
d
I use doOnComplete and doOnError when I have a function that, for example, creates a flowable and calls an operator or two on it but doesn’t subscribe. That way you can still use the “doOn…” operators to have some control over what happens to the data after it has been subscribed to without having to actually subscribe to the data so you don’t have to care what the subscriber does in their onComplete and onError functions