Created
January 18, 2017 22:12
-
-
Save jwkidd3/6d95c488b35f28044cc4bc5dbd985578 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Observable<Long> obs = Observable.interval(100, TimeUnit.MILLISECONDS) | |
| .take(5) | |
| .cache(); | |
| Thread.sleep(500); | |
| obs.subscribe(i -> System.out.println("First: " + i)); | |
| Thread.sleep(300); | |
| obs.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