Created
June 10, 2017 03:57
-
-
Save ReneeVandervelde/de5b4212d5f87e1c2ebd683f784d21c8 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").subscribe(this::stringConsumer, this::errorConsumer) | |
} | |
fun stringConsumer(value: String) { TODO() } | |
fun errorConsumer(error: Throwable) { TODO() } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment