Skip to content

Instantly share code, notes, and snippets.

@jwkidd3
Created January 18, 2017 22:10
Show Gist options
  • Save jwkidd3/5d53772d9be5c943c7e13902a01b6230 to your computer and use it in GitHub Desktop.
Save jwkidd3/5d53772d9be5c943c7e13902a01b6230 to your computer and use it in GitHub Desktop.
Observable<Long> cold = Observable.interval(200, TimeUnit.MILLISECONDS);
cold.subscribe(i -> System.out.println("First: " + i));
Thread.sleep(500);
cold.subscribe(i -> System.out.println("Second: " + i));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment