Skip to content

Instantly share code, notes, and snippets.

@aanandshekharroy
Created February 12, 2018 16:52
Show Gist options
  • Save aanandshekharroy/248e8c4077b7ed50e9f38720cd1084ce to your computer and use it in GitHub Desktop.
Save aanandshekharroy/248e8c4077b7ed50e9f38720cd1084ce to your computer and use it in GitHub Desktop.
Simple RxKotlin
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