Created
June 10, 2017 03:51
-
-
Save ReneeVandervelde/8a9caca964c1a4c8a06001b8b855f6f0 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 MyErrorHandler : Consumer<Throwable> { | |
override fun accept(t: Throwable?) { TODO() } | |
} | |
class Foo { | |
fun main() { | |
val errorHandler = MyErrorHandler() | |
Observable.just("foo").subscribe(this::stringConsumer, errorHandler) | |
} | |
fun stringConsumer(value: String) { TODO() } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment