Created
June 10, 2017 03:23
-
-
Save ReneeVandervelde/ccb8ebca6eecba1252b5d28765614b4e 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
import io.reactivex.Observable | |
import io.reactivex.functions.Consumer | |
class Foo { | |
fun main() { | |
Observable.just("foo", "bar").subscribe(this::stringConsumer) | |
} | |
fun stringConsumer(value: String) { | |
println(value) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment