delay and interval operators do not work properly
As shown below, I am creating Observables . I would like to wait specific amount of time in seconds as shown in the code. therefore I used either delay or interval operator. I expected the code to wait i.e. 5 seconds then System.out.println from the observer to be printed. but what happens is, doOnNext is executed and the code never goes further. I mean the execution stops at doOnNext even after the 5 seconds elapsed. Code : public static void main(String[] args) { Observable<List<Person>> observables = Observable.create(e-> { for(List<Person> p : Main.getPersons()) { e.onNext(p); } e