Skip to content

Instantly share code, notes, and snippets.

@ReneeVandervelde
Created June 10, 2017 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ReneeVandervelde/ccb8ebca6eecba1252b5d28765614b4e to your computer and use it in GitHub Desktop.
Save ReneeVandervelde/ccb8ebca6eecba1252b5d28765614b4e to your computer and use it in GitHub Desktop.
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