Created
February 12, 2018 16:52
-
-
Save aanandshekharroy/248e8c4077b7ed50e9f38720cd1084ce to your computer and use it in GitHub Desktop.
Simple RxKotlin
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
Observable.fromArray(1,2,3,4) | |
.subscribeBy( | |
onNext = { | |
println(it) | |
}, | |
onComplete = { | |
println("Completed") | |
}, | |
onError = { | |
println(it.message) | |
} | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment