Created
October 9, 2018 22:51
-
-
Save zsoltk/deff65652e8dff7d5fc713aa736e2115 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
// Wishes -> Feature | |
val wishes: ObservableSource<Wish> = Observable.just(Wish.SomeWish) | |
val feature: Consumer<Wish> = SomeFeature() | |
val disposable = Observable.wrap(wishes).subscribe(feature) | |
// Feature -> State consumer | |
val feature: ObservableSource<State> = SomeFeature() | |
val logger: Consumer<State> = Consumer { System.out.println(it) } | |
val disposable = Observable.wrap(feature).subscribe(logger) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment