What is the recommended way to multicast single player, Maybes and Completables? Is it recommended that you simply translate them into standard observables for multicast?
Observable<String> strings =
Observable.just("Alpha", "Beta", "Gamma", "Delta", "Epsilon");
Observable<Integer> lengths = strings.map(String::length);
ConnectableObservable<List<Integer>> lengthsList =
lengths.toList().toObservable().publish();
I am a little surprised that not ConnectableSingle, ConnectableMaybeand ConnectableCompletable. What are the reasons for this? Isn't it worth the effort for development?
source
share