Last active
June 23, 2017 10:41
-
-
Save ksc91u/0b11e492df820dd44a5839b14aa5183c to your computer and use it in GitHub Desktop.
Observable.empty
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<String> o1 = Observable.just("Not Empty"); | |
Observable<String> o2 = Observable.empty(); | |
Observable.zip(o1, o2, (o, o21) -> { | |
Timber.e(">>>>> Will not trigger" + o + ", " + o21); | |
return ""; | |
}).subscribe(); | |
Observable.empty().subscribe(o -> { | |
Timber.e(">>>> Will not trigger"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/43065527/observable-empty-what-returns-inside-a-zip