doOnBeforeComplete

Calls the action with the emitted value when the Completable signals onComplete. The action is called before the observer is called.

Please refer to the corresponding RxJava document.