Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Created October 9, 2018 22:50
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 zsoltk/edbd9356ca2ec05cff2c317b800829bf to your computer and use it in GitHub Desktop.
Save zsoltk/edbd9356ca2ec05cff2c317b800829bf to your computer and use it in GitHub Desktop.
val output: ObservableSource<String> = Observable.just("item1", "item2", "item3")
val input: Consumer<String> = Consumer { System.out.println(it) }
val disposable = Observable.wrap(output).subscribe(input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment