Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save martinomburajr/680fe267c2ec23a912971113bfb0f8c6 to your computer and use it in GitHub Desktop.

Select an option

Save martinomburajr/680fe267c2ec23a912971113bfb0f8c6 to your computer and use it in GitHub Desktop.
/******************** TIMER ***************************/
Observable.timer(2000L, TimeUnit.MILLISECONDS)
.subscribe(longObserver);
//Output
// E/RxJava2:Schedulers:: onSubscribe | main
// E/RxJava2:Schedulers:: onNext | 0
// E/RxJava2:Schedulers:: onNext | RxComputationThreadPool-2
// E/RxJava2:Schedulers:: onComplete | RxComputationThreadPool-2
/*********************** END OF TIMER ******************/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment