Skip to content

Instantly share code, notes, and snippets.

@hhariri
Created February 7, 2014 11:03
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 hhariri/8860762 to your computer and use it in GitHub Desktop.
Save hhariri/8860762 to your computer and use it in GitHub Desktop.
var o = Observable.from(arrayListOf("1", "2", "3", "4"))
o.subscribe(
onNext = { result -> println(result)},
onError = { (error) -> println(error)},
onComplete = { () -> println("Complete")}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment