publish
Returns a ConnectableObservable that shares a single subscription to the source Observable. The source Observable is subscribed when the ConnectableObservable.connect method is called, and is unsubscribed when the returned Disposable is disposed.
Please refer to the corresponding RxJava document.
For every subscription, calls the selector with an Observable that shares a single subscription to this Observable, and emits elements from the returned Observable.
Please refer to the corresponding RxJava document.