doOnBeforeSubscribe

Calls the shared action for each new observer with the Disposable sent to the downstream. The action is called for each new observer before its onSubscribe callback is called.

Please refer to the corresponding RxJava document.