Created
January 18, 2017 21:52
-
-
Save jwkidd3/54a7c3e54e62f987c3b7249e20e00f49 to your computer and use it in GitHub Desktop.
This file contains 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<Integer> values = Observable.range(0, 2); | |
Subscription subscription = values | |
.exists(i -> i > 2) | |
.subscribe( | |
v -> System.out.println(v), | |
e -> System.out.println("Error: " + e), | |
() -> System.out.println("Completed") | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment