autoConnect vs connect method

In this post I will explain with example the difference between autoConnect and connect. In terms of similarities both are used with ConnectableObservable which is an Hot Observable. Both tells the Observable when to start emitting items. The difference being when to tell the Observable, at what point to start emitting items. For example, if…… Continue reading autoConnect vs connect method

ConnectableObservable autoConnect method

In this post under RxJava, I will explain with example the purpose of autoConnect method in ConnectableObservable class. We can use the autoConnect method to inform in advance how many observers will subscribe to the ConnectableObservable. Once the mentioned number of observers subscribe to the ConnectableObservable, the observable will behave like an cold observable and…… Continue reading ConnectableObservable autoConnect method