ConnectableObservable: So Hot Right Now

1 · Daniel Lew · Sept. 25, 2018, 2 p.m.
ConnectableObservable does not care when you subscribe to it; instead, it only begins its work when connect() is called. With that in mind, what is the output of the following?val connectableObservable = Observable.just("Hello!").publish() connectableObservable .subscribeOn(Schedulers.io()) .subscribe { println(it) } connectableObservable.connect()If you answered "Hello!" then...