I\'m learning about RxJava operator, and I found these code below did not print anything:
public static void main(String[] args) { Observable .inter
Put Thread.sleep(1000000) after the subscribe and you will see it working. Observable.interval operates by default on Schedulers.computation() so your stream is being run on a thread other than the main thread.
Thread.sleep(1000000)
Observable.interval
Schedulers.computation()